Remove old ref
This commit is contained in:
parent
fe28de01bc
commit
715bc738bb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user