Undefined variable

This commit is contained in:
Alexander M. Turek
2004-06-24 11:14:00 +00:00
parent 1577c890f4
commit 098ea1880d
2 changed files with 5 additions and 1 deletions

View File

@@ -5,6 +5,10 @@ phpMyAdmin - Changelog
$Id$ $Id$
$Source$ $Source$
2004-06-24 Alexander M. Turek <me@derrabus.de>
* libraries/dbi/mysqli.dbi.php: Undefined variable if PMA_DBI_getError() is
called although no error occured.
2004-06-24 Michal Čihař <michal@cihar.com> 2004-06-24 Michal Čihař <michal@cihar.com>
* main.php, changelog.php: Add headers to ChangeLog display. * main.php, changelog.php: Add headers to ChangeLog display.
* scripts/create_tables.sql: Add IF EXISTS. * scripts/create_tables.sql: Add IF EXISTS.

View File

@@ -197,7 +197,7 @@ function PMA_DBI_getError($link = NULL) {
} }
// keep the error number for further check after the call to PMA_DBI_getError() // keep the error number for further check after the call to PMA_DBI_getError()
if ($error) { if (!empty($error)) {
$GLOBALS['errno'] = $error; $GLOBALS['errno'] = $error;
} else { } else {
return FALSE; return FALSE;