Fixed the display_query undefined error by adding a check to see if it exists
This commit is contained in:
4
sql.php
4
sql.php
@@ -675,7 +675,9 @@ if (0 == $num_rows || $is_affected) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$extra_data['sql_query'] = PMA_showMessage(NULL, $GLOBALS['display_query']);
|
if(isset($GLOBALS['display_query'])) {
|
||||||
|
$extra_data['sql_query'] = PMA_showMessage(NULL, $GLOBALS['display_query']);
|
||||||
|
}
|
||||||
|
|
||||||
PMA_ajaxResponse($message, $message->isSuccess(), $extra_data);
|
PMA_ajaxResponse($message, $message->isSuccess(), $extra_data);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user