X-Git-Url: http://andersk.mit.edu/gitweb/sql-web.git/blobdiff_plain/9c70b48184fc9dc34b9725daa6b3b050fd49e6d0..9840d1021689621de69674389a2a15ac10183d02:/tpl/main.php diff --git a/tpl/main.php b/tpl/main.php index 2c019d4..ea097da 100644 --- a/tpl/main.php +++ b/tpl/main.php @@ -6,7 +6,7 @@ if (isset($i_dropask)) { $dropdbs = array_keys($i_dropask); echo '
'; foreach($dropdbs as $dbname) { - $msg[] = 'Are you sure you want to drop `'.$dbname.'`? '; + $msg1[] = 'Are you sure you want to drop `'.$dbname.'`? '; } echo '
'; } @@ -15,8 +15,8 @@ if (isset($i_dropask)) {

Databases

- - + +
@@ -25,6 +25,9 @@ if (isset($i_dropask)) { $bytes = $User->getBytes(); $usage = $bytes['nBytes']; $total = $bytes['nBytesHard']; + if (!count($myDBs)) { + echo ''; + } else foreach($myDBs as $db) { echo '
You have no databases. Add one below.
'; if ($total>0)