fix sourceJalPdf : add select id

This commit is contained in:
benoitpotier 2017-04-13 17:00:12 +02:00
parent 72377948aa
commit 22442903b6

View File

@ -85,7 +85,7 @@ if ($opts->cron) {
$fileDate = date('Ymd', filectime($filePath)); $fileDate = date('Ymd', filectime($filePath));
$isInsert = false; $isInsert = false;
$jalSql = "SELECT pdfName FROM octde.jalpdfsed WHERE pdfName=:file"; $jalSql = "SELECT id, pdfName FROM octde.jalpdfsed WHERE pdfName=:file";
$jalStmt = $conn->prepare($jalSql); $jalStmt = $conn->prepare($jalSql);
$jalStmt->bindValue('file', $fileName); $jalStmt->bindValue('file', $fileName);
$jalStmt->execute(); $jalStmt->execute();