Bugfix: create 'aws' quota in table 'quotas'

This commit is contained in:
Axel ROGER 2012-08-24 14:41:16 +00:00
parent 5655d66d52
commit 30a2d3cbd9
1 changed files with 1 additions and 1 deletions

View File

@ -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;");
}
}