]> andersk Git - sql-web.git/blobdiff - lib/proc.lib.php
Use nDatabasesHard instead of MAXDBS
[sql-web.git] / lib / proc.lib.php
index adf8252858526148ef4176df1ad06dbf914bdc19..865d49805ed95cb059a75f9911015cb1d4e6f4ee 100644 (file)
@@ -16,7 +16,7 @@ class proc {
                $dbname = $uname.DELIMETER.$i_newdb;
                if ($User->isOverQuota() && !isAdmin()) {
                        $err1[] = 'You are over your quota. You may not add more databases.';
-               } elseif (count($User->getDBList())>MAXDBS && !isAdmin()) {
+               } elseif (count($User->getDBList())>=$User->getDBQuotaHard() && !isAdmin()) {
                        $err1[] = 'You have too many databases. You may not add more databases.';
                } elseif (empty($i_newdb)) {
                        $err1[] = 'Your database name may not be empty.';
This page took 0.065543 seconds and 4 git commands to generate.