]> andersk Git - sql-web.git/blobdiff - main.php
bug: dropping database outside the interface stops interface for all users
[sql-web.git] / main.php
index 8a6ac81f5110d51e67c3cac6809bfc315d1b133b..8fa2c3da943e453e456bf31b8459e4f97c942f39 100644 (file)
--- a/main.php
+++ b/main.php
@@ -18,6 +18,8 @@ if (isPost()) {
                        $err1[] = 'You are over your quota. You may not add more databases.';
                } elseif (count($User->getDBList())>MAXDBS) {
                        $err1[] = 'You have too many databases. You may not add more databases.';
+               } elseif (empty($i_newdb)) {
+                       $err1[] = 'Your database name may not be empty.';
                } elseif (!$User->addDB($dbname)) {
                        if (mysql_error()) {
                                $err1[] = mysql_error();
This page took 0.02422 seconds and 4 git commands to generate.