1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/emailpoubelle_ynh.git synced 2024-09-03 18:26:29 +02:00

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

This commit is contained in:
David 2013-11-19 19:32:04 +01:00
parent b61f77ed07
commit 6fed9943f8
2 changed files with 3 additions and 4 deletions

View file

@ -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

View file

@ -324,7 +324,6 @@ function LifeExpire() {
} catch ( PDOException $e ) {
echo "DB error : ", $e->getMessage();
die();
}
return true;
}
}
?>