Update the script to be compatible with new alternc version

Closes: #1044
This commit is contained in:
Nahuel Angelinetti 2009-02-18 18:21:25 +00:00
parent 9a71472424
commit bb42e17a9c
2 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,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)) {
mysql_query("INSERT INTO quotas (uid,name,total,used) VALUES ('$c[uid]','$name','$value',0);");
mysql_query("INSERT INTO quotas (uid,name,total) VALUES ('$c[uid]','$name','$value');");
}
}

View File

@ -53,7 +53,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)) {
mysql_query("INSERT INTO quotas (uid,name,total,used) VALUES ('$c[uid]','$name','$quota',0);");
mysql_query("INSERT INTO quotas (uid,name,total) VALUES ('$c[uid]','$name','$quota');");
}
}