Bugfix: create 'aws' quota in table 'quotas'
This commit is contained in:
parent
5655d66d52
commit
30a2d3cbd9
|
@ -52,7 +52,7 @@ if (mysql_errno()) {
|
|||
}
|
||||
while ($c=mysql_fetch_array($r)) {
|
||||
$s=mysql_query("SELECT name FROM quotas WHERE uid='$c[uid]' AND name='$name';");
|
||||
if (mysql_num_rows($s)) {
|
||||
if (!mysql_num_rows($s)) {
|
||||
mysql_query("INSERT INTO quotas (uid,name,total) VALUES ('$c[uid]','$name','$quota') on DUPLICATE KEY UPDATE total=$quota;");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue