parent
d8da5e93ec
commit
651bbe1c91
|
@ -277,7 +277,8 @@ class m_quota {
|
||||||
global $db;
|
global $db;
|
||||||
$qlist=$this->qlist();
|
$qlist=$this->qlist();
|
||||||
reset($qlist);
|
reset($qlist);
|
||||||
|
if(empty($type))
|
||||||
|
return false;
|
||||||
while (list($key,$val)=each($qlist)) {
|
while (list($key,$val)=each($qlist)) {
|
||||||
if(!$db->query("INSERT IGNORE INTO defquotas (quota,type) VALUES('$key', '$type');")
|
if(!$db->query("INSERT IGNORE INTO defquotas (quota,type) VALUES('$key', '$type');")
|
||||||
|| $db->affected_rows() == 0)
|
|| $db->affected_rows() == 0)
|
||||||
|
|
Loading…
Reference in New Issue