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:
parent
b61f77ed07
commit
6fed9943f8
2 changed files with 3 additions and 4 deletions
|
@ -216,8 +216,6 @@ if (isset($_POST['username']) && $_POST['username'] != '') { // minimal anti-spa
|
||||||
unset($_COOKIE['email']);
|
unset($_COOKIE['email']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Close connexion DB
|
|
||||||
$dbco = null;
|
|
||||||
|
|
||||||
//////////////////
|
//////////////////
|
||||||
// Printing form
|
// Printing form
|
||||||
|
@ -371,6 +369,8 @@ $dbco = null;
|
||||||
<?php
|
<?php
|
||||||
// execute lifeExpir if isn't in crontab
|
// execute lifeExpir if isn't in crontab
|
||||||
if (!CRON) { LifeExpire(); }
|
if (!CRON) { LifeExpire(); }
|
||||||
|
// Close connexion DB
|
||||||
|
$dbco = null;
|
||||||
// checkupdate
|
// checkupdate
|
||||||
echo CheckUpdate();
|
echo CheckUpdate();
|
||||||
} // end maintenance mod
|
} // end maintenance mod
|
||||||
|
|
|
@ -325,6 +325,5 @@ function LifeExpire() {
|
||||||
echo "DB error : ", $e->getMessage();
|
echo "DB error : ", $e->getMessage();
|
||||||
die();
|
die();
|
||||||
}
|
}
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in a new issue