From 7ba84db28ca442cef8155ed2ed3315c2898b9280 Mon Sep 17 00:00:00 2001 From: Steve Alberty Date: Sun, 10 Jun 2001 12:54:32 +0000 Subject: [PATCH] shows minus instead of plus in empty databases --- left.js | 2 +- left.php3 | 14 ++++++++++---- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/left.js b/left.js index e6d8fe70d..64de0a4d0 100644 --- a/left.js +++ b/left.js @@ -183,7 +183,7 @@ function expandBase(el, unexpand) if (isDOM) { var whichEl = document.getElementById(el + 'Child'); var whichIm = document.getElementById(el + 'Img'); - if (whichEl.style.display == 'none') { + if (whichEl.style.display == 'none' && whichIm) { whichEl.style.display = 'block'; whichIm.src = imgOpened.src; } diff --git a/left.php3 b/left.php3 index 0488c1395..ea5f62c3b 100755 --- a/left.php3 +++ b/left.php3 @@ -55,10 +55,18 @@ if($server > 0) else $db = $dblist[$i]; $j = $i + 2; + // few changes, staybyte + $tables = mysql_list_tables($db); + $num_tables = @mysql_numrows($tables); ?>
- - + + + +\n"; + ?> @@ -66,8 +74,6 @@ if($server > 0)