$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.';