X-Git-Url: http://andersk.mit.edu/gitweb/sql-web.git/blobdiff_plain/eb021b3384806a6118a09a3f8748ca33ce85fde5..3845bdf8e696fcd5a72af0b722ff5ea5c3875cf1:/lib/proc.lib.php diff --git a/lib/proc.lib.php b/lib/proc.lib.php index adf8252..865d498 100644 --- a/lib/proc.lib.php +++ b/lib/proc.lib.php @@ -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.';