Remove old ref

This commit is contained in:
Michael RICOIS 2017-01-11 16:24:21 +01:00
parent fe28de01bc
commit 715bc738bb

View File

@ -1180,12 +1180,13 @@ class Gestion extends Scores_Ws_Server
else {
// --- Droits client actuel avant modification
if (isset($tabInfos['droits'])) {
$iDbCrm = new Metier_Util_Db();
$rep = $iDbCrm->select('sdv1.clients', 'droits', "id='$idClient'", false, MYSQL_ASSOC);
$sql = "SELECT droits FROM sdv1.clients WHERE id='$idClient'";
$stmt = $this->conn->executeQuery($sql);
$result = $stmt->fetch(\PDO::FETCH_OBJ);
try {
$stmt = $this->conn->prepare("SELECT droits FROM sdv1.clients WHERE id=:id");
$stmt->bindValue('id', $idClient);
$stmt->execute();
$result = $stmt->fetch(\PDO::FETCH_OBJ);
} catch (\Doctrine\DBAL\DBALException $e) {
}
$droitsPre = explode(' ', $result->droits);
$droitsSui = explode(' ', $tabInfos['droits']);
//Détection suppression d'un droit client