From 651bbe1c91e6a214ec096c525026b6cdc049eb84 Mon Sep 17 00:00:00 2001 From: Nahuel Angelinetti Date: Wed, 24 May 2006 11:41:19 +0000 Subject: [PATCH] Empeche les types de quotas vides Closes: #695 --- bureau/class/m_quota.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bureau/class/m_quota.php b/bureau/class/m_quota.php index 5020be35..0c61b2c7 100644 --- a/bureau/class/m_quota.php +++ b/bureau/class/m_quota.php @@ -277,7 +277,8 @@ class m_quota { global $db; $qlist=$this->qlist(); reset($qlist); - + if(empty($type)) + return false; while (list($key,$val)=each($qlist)) { if(!$db->query("INSERT IGNORE INTO defquotas (quota,type) VALUES('$key', '$type');") || $db->affected_rows() == 0)