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