Skip to content

Commit

Permalink
Show query if no results found
Browse files Browse the repository at this point in the history
Signed-off-by: Liviu-Mihail Concioiu <[email protected]>
  • Loading branch information
liviuconcioiu committed Jan 4, 2025
1 parent 58f7393 commit db7b4bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/classes/Sql.php
Original file line number Diff line number Diff line change
Expand Up @@ -1048,7 +1048,7 @@ private function getQueryResponseForNoResultsReturned(
$message = $this->getMessageForNoRowsReturned($messageToShow, $analyzedSqlResults, $numRows);
}

$queryMessage = Generator::getMessage($message, $GLOBALS['sql_query'], 'success');
$queryMessage = Generator::getMessage($message, $sqlQuery, 'success');

if (isset($GLOBALS['show_as_php'])) {
return $queryMessage;
Expand Down

0 comments on commit db7b4bc

Please sign in to comment.