do not use "mysql_result" on a query that failed
This commit is contained in:
@@ -5,6 +5,10 @@ phpMyAdmin - Changelog
|
||||
$Id$
|
||||
$Source$
|
||||
|
||||
2002-05-04 Lo<4C>c Chapeaux <lolo@phpheaven.net>
|
||||
* user_details.php3, line 984: do not use "mysql_result" if the query
|
||||
fails.
|
||||
|
||||
2002-05-03 Lo<4C>c Chapeaux <lolo@phpheaven.net>
|
||||
* lang/italian.inc.php3: updated, thanks to Pietro Danesi.
|
||||
* tbl_properties.php3; tbl_properties_export.php3;
|
||||
|
@@ -981,7 +981,7 @@ if (mysql_error()) {
|
||||
exit();
|
||||
}
|
||||
$result = @mysql_query('SELECT COUNT(Password) FROM mysql.user');
|
||||
$password_field = (mysql_result($result, 0) ? 'Password' : 'password');
|
||||
$password_field = ((!$result || mysql_result($result, 0)) ? 'Password' : 'password');
|
||||
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user