Empeche les types de quotas vides

Closes: #695
This commit is contained in:
Nahuel Angelinetti 2006-05-24 11:41:19 +00:00
parent d8da5e93ec
commit 651bbe1c91
1 changed files with 2 additions and 1 deletions

View File

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