Commit 30a2d3cb authored by Axel ROGER's avatar Axel ROGER
Browse files

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

parent 5655d66d
......@@ -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;");
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment