avoid assignment in condition

This commit is contained in:
Alex Marin 2012-04-20 16:41:12 +03:00
parent f9e321bf80
commit b02e8adc3c

View File

@ -547,7 +547,8 @@ if (isset($GLOBALS['show_as_php']) || ! empty($GLOBALS['validatequery'])) {
$GLOBALS['querytime'] = $querytime_after - $querytime_before;
// Displays an error message if required and stop parsing the script
if ($error = PMA_DBI_getError()) {
$error = PMA_DBI_getError();
if ($error) {
if ($is_gotofile) {
if (strpos($goto, 'db_') === 0 && strlen($table)) {
$table = '';