Correction condition

This commit is contained in:
Michael RICOIS 2016-11-14 10:29:18 +01:00
parent 026c642565
commit a55c9d0eb0

View File

@ -123,7 +123,7 @@ if ($opts->cron) {
$jalStmt = $conn->prepare($jalSql);
$jalStmt->bindValue('file', $fileName);
$jalStmt->execute();
if ($jalStmt->rowCount()) {
if ($jalStmt->rowCount() == 0) {
$data = array(
'pdfName' => $fileName,
'idJalEd' => $idJalEd,