Remove Notice
This commit is contained in:
parent
4b1a9d694d
commit
0fd0b918d0
@ -208,8 +208,10 @@ class Metier_Liens_Base
|
|||||||
$sql = "SELECT LPAD(siren, 9, 0) AS siren FROM jo.liensRef WHERE id = :id";
|
$sql = "SELECT LPAD(siren, 9, 0) AS siren FROM jo.liensRef WHERE id = :id";
|
||||||
$stmt = $this->conn->prepare($sql);
|
$stmt = $this->conn->prepare($sql);
|
||||||
$stmt->bindValue('id', $this->idRef);
|
$stmt->bindValue('id', $this->idRef);
|
||||||
$result = $stmt->fetch(\PDO::FETCH_OBJ);
|
if ($stmt->rowCount() > 0) {
|
||||||
$siren = $result->siren;
|
$result = $stmt->fetch(\PDO::FETCH_OBJ);
|
||||||
|
$siren = $result->siren;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
$siren = $this->siren;
|
$siren = $this->siren;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user