fix execute of statement if variables != replacers in sql-prepare query
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
@@ -17,31 +17,28 @@
|
||||
*
|
||||
*/
|
||||
|
||||
if($settings['logger']['log_cron'] == '1')
|
||||
{
|
||||
if ($settings['logger']['log_cron'] == '1') {
|
||||
$cronlog->setCronLog(0);
|
||||
fwrite($debugHandler, 'Logging for cron has been shutdown' . "\n");
|
||||
}
|
||||
|
||||
// TODO remove when completely migrated to PDO
|
||||
$db->close();
|
||||
fwrite($debugHandler, 'Closing database connection' . "\n");
|
||||
|
||||
if(isset($db_root))
|
||||
{
|
||||
if (isset($db_root)) {
|
||||
$db_root->close();
|
||||
fwrite($debugHandler, 'Closing database rootconnection' . "\n");
|
||||
}
|
||||
|
||||
if($keepLockFile === true)
|
||||
{
|
||||
if ($keepLockFile === true) {
|
||||
fwrite($debugHandler, '=== Keep lockfile because of exception ===');
|
||||
}
|
||||
|
||||
fclose($debugHandler);
|
||||
|
||||
if($keepLockFile === false
|
||||
&& $cronscriptDebug === false)
|
||||
{
|
||||
if ($keepLockFile === false
|
||||
&& $cronscriptDebug === false
|
||||
) {
|
||||
unlink($lockfile);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user