Commit 6fed9943 authored by David's avatar David
Browse files

Bug : clôture db connexion mis avant la dernière requête

parent b61f77ed
......@@ -216,8 +216,6 @@ if (isset($_POST['username']) && $_POST['username'] != '') { // minimal anti-spa
unset($_COOKIE['email']);
}
}
// Close connexion DB
$dbco = null;
//////////////////
// Printing form
......@@ -371,6 +369,8 @@ $dbco = null;
<?php
// execute lifeExpir if isn't in crontab
if (!CRON) { LifeExpire(); }
// Close connexion DB
$dbco = null;
// checkupdate
echo CheckUpdate();
} // end maintenance mod
......
......@@ -324,7 +324,6 @@ function LifeExpire() {
} catch ( PDOException $e ) {
echo "DB error : ", $e->getMessage();
die();
}
return true;
}
}
?>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment