bug 1667466, undefined variable when export + save on server

This commit is contained in:
Marc Delisle
2007-02-25 12:39:38 +00:00
parent 4580f48e8d
commit cff19a334a
2 changed files with 8 additions and 1 deletions

View File

@@ -1185,8 +1185,11 @@ if (typeof(window.parent) != 'undefined'
$sql_query = $GLOBALS['display_query'];
} elseif ($cfg['SQP']['fmtType'] == 'none' && ! empty($GLOBALS['unparsed_sql'])) {
$sql_query = $GLOBALS['unparsed_sql'];
} else {
// could be empty, for example export + save on server
} elseif (! empty($GLOBALS['sql_query'])) {
$sql_query = $GLOBALS['sql_query'];
} else {
$sql_query = '';
}
}