From bb42e17a9c02e258fed813c739a8ba199d9e9549 Mon Sep 17 00:00:00 2001 From: Nahuel Angelinetti Date: Wed, 18 Feb 2009 18:21:25 +0000 Subject: [PATCH] Update the script to be compatible with new alternc version Closes: #1044 --- quota_init | 2 +- src/quota_init | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/quota_init b/quota_init index a4fd9d98..683ff8a9 100644 --- a/quota_init +++ b/quota_init @@ -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');"); } } diff --git a/src/quota_init b/src/quota_init index 25b8de73..a6f11fe1 100644 --- a/src/quota_init +++ b/src/quota_init @@ -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');"); } }