From 6d4da778cb99fec6a76fa5ce36b9977c64f68d87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Chapeaux?= Date: Wed, 29 Aug 2001 18:19:13 +0000 Subject: [PATCH] fixed a js error with NS --- ChangeLog | 1 + left.php3 | 13 ++++++------- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index fac6c0886..bf548d58f 100755 --- a/ChangeLog +++ b/ChangeLog @@ -33,6 +33,7 @@ $Source$ * lib.inc.php3, lines 1154-1170: added an option to display the whole value of a text field in a javascript alert box thanks to "Opi" . * lang/english.inc.php3: re-sorted and fixed some typos. + * left.php3: fixed a js error with NS. 2001-08-28 Loïc Chapeaux * lang/galician.inc.php3, select_lang.inc.php3: new Galician lang thanks to diff --git a/left.php3 b/left.php3 index 536045f56..4e9868be0 100755 --- a/left.php3 +++ b/left.php3 @@ -22,9 +22,8 @@ if ($server > 0) { $num_dbs = count($dblist); // 1. $cfgServers[n]['only_db'] exists -> gets the valid databases list if ($num_dbs) { - $true_dblist = array(); + $true_dblist = array(); for ($i = 0; $i < $num_dbs; $i++) { - // $dblink = @mysql_select_db(backquote($dblist[$i])); $dblink = @mysql_select_db($dblist[$i]); if ($dblink) { $true_dblist[] = $dblist[$i]; @@ -37,12 +36,12 @@ if ($server > 0) { } // end if // 2. no $cfgServers[n]['only_db'] else { - $dbs = mysql_list_dbs() or mysql_die('', 'mysql_list_dbs()', FALSE, FALSE); - $num_dbs = @mysql_num_rows($dbs); + $dbs = mysql_list_dbs() or mysql_die('', 'mysql_list_dbs()', FALSE, FALSE); + $num_dbs = @mysql_num_rows($dbs); $real_num_dbs = 0; for ($i = 0; $i < $num_dbs; $i++) { $db_name_tmp = mysql_dbname($dbs, $i); - $dblink = @mysql_select_db($db_name_tmp); + $dblink = @mysql_select_db($db_name_tmp); if ($dblink) { $dblist[] = $db_name_tmp; $real_num_dbs++; @@ -207,7 +206,7 @@ if ($num_dbs > 1) { if (!empty($num_tables)) { echo "\n"; ?> - + + 1) { } echo "\n"; ?> - +   ()