Fixed editing a failed query from the error message

Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes 2020-06-07 16:49:29 +02:00
parent a32029436f
commit fb2d11d6ae
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889

View File

@ -56,6 +56,9 @@ class SqlQueryForm
// query to show // query to show
if (true === $query) { if (true === $query) {
$query = $GLOBALS['sql_query']; $query = $GLOBALS['sql_query'];
if (empty($query) && (isset($_GET['show_query']) || isset($_POST['show_query']))) {
$query = $_GET['sql_query'] ?? $_POST['sql_query'] ?? '';
}
} }
// set enctype to multipart for file uploads // set enctype to multipart for file uploads