From 13144a162aeb07688ab2ca5417ec0862312b8134 Mon Sep 17 00:00:00 2001 From: Benjamin Sonntag Date: Wed, 28 Feb 2018 17:32:52 +0100 Subject: [PATCH] fixing spoolsize to handle deleted DB --- src/spoolsize.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/spoolsize.php b/src/spoolsize.php index 4ae6c285..f781143a 100644 --- a/src/spoolsize.php +++ b/src/spoolsize.php @@ -30,13 +30,13 @@ if ($db->query("SELECT uid,login FROM membres;")) { } echo "\n---------------------------\n Generating size-cache for MySQL databases\n\n"; - // We get all hosts on which sql users' DB are +// We get all hosts on which sql users' DB are $r=$db->query("select * from db_servers;"); $allsrv=array(); while ($db->next_record()) { $allsrv[] = $db->Record; } - +$db->query("DELETE FROM size_db;"); $tab=array(); foreach($allsrv as $c) { $tab=$mysql->get_dbus_size($c["name"],$c["host"],$c["login"],$c["password"],$c["client"]);