fixed unlink not always executed

This commit is contained in:
xdrm-brackets 2017-09-15 20:19:45 +02:00
parent ca7f5bbc6a
commit adb2fee18e
1 changed files with 6 additions and 5 deletions

View File

@ -296,6 +296,10 @@
}
/* Remove file */
unlink($link);
/* [2] Apply Tesseract
=========================================================*/ {
@ -320,10 +324,7 @@
/* [3] End procedure
=========================================================*/
/* (1) Remove file */
unlink($link);
/* (2) Return read value */
/* (1) Return read value */
return $read;
}
@ -425,7 +426,7 @@
/* (1) If a name -> Search if there is a correction in the database */
$sqlr = DatabaseDriver::getPDO()->prepare("SELECT e.id_event as ide, l.id_location as idl, l.id_location as idl e.name as ename, l.name as lname FROM event as e, location as l WHERE e.id_event = l.id_event AND l.id_location= :idl");
$sqlr = DatabaseDriver::getPDO()->prepare("SELECT e.id_event as ide, l.id_location as idl, l.id_location as idl, e.name as ename, l.name as lname FROM event as e, location as l WHERE e.id_event = l.id_event AND l.id_location= :idl");
$sqlr->execute([ ':idl' => $data[1] ]);
/* (2) Default values */