From e32e8837c05732e67a5ac0ef8a98f85c4ed1f57f Mon Sep 17 00:00:00 2001 From: Remi Date: Fri, 15 Jul 2016 17:09:49 +0200 Subject: [PATCH] bug fix: unknown mysql expression "insert or replace" --- src/spoolsize.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spoolsize.php b/src/spoolsize.php index 964e5876..1574e29d 100644 --- a/src/spoolsize.php +++ b/src/spoolsize.php @@ -18,7 +18,7 @@ if ($db->query("SELECT uid,login FROM membres;")) { while ($db->next_record()) { if (isset($list_quota[$db->f('uid')])) { $qu=$list_quota[$db->f('uid')]; - $db2->query("INSERT OR REPLACE INTO size_web SET uid=?, size=?;",array(intval($db->f('uid')),intval($qu['used']))); + $db2->query("REPLACE INTO size_web SET uid=?, size=?;",array(intval($db->f('uid')),intval($qu['used']))); echo $db->f('login')." (".$qu['used']." B)\n"; } }