suppres warnings

This commit is contained in:
Steve Alberty
2001-07-19 11:37:53 +00:00
parent 83bceddd7b
commit 2b7ce4ea1a
2 changed files with 7 additions and 1 deletions

View File

@@ -5,6 +5,12 @@ phpMyAdmin - Changelog
$Id$
$Source$
2001-07-18 Steve Alberty <alberty@neptunlabs.de>
* left.php3: add 'or mysql_die()' for mysql_list_dbs to suppress
'unable to save result' warnings
* defines.inc.php3: fix bug #442493 and add second version
identification. if fails mysql_major_version=3.21
2001-07-18 Marc Delisle <lem9@users.sourceforge.net>
* tbl_change.php3, bug 442337: a bad line split was adding a blank
in front of the $sql_query, so a check for ^SELECT would not work

View File

@@ -21,7 +21,7 @@ require('./lib.inc.php3');
if ($server > 0) {
// Get databases list
if (empty($dblist)) {
$dbs = mysql_list_dbs();
$dbs = @mysql_list_dbs() or mysql_die();
$num_dbs = mysql_numrows($dbs);
} else {
$num_dbs = count($dblist);