Merge #19237 Fix duplicate message being shown
- Closes #19237
This PR will fix a bug introduced in ed1ca20848. If a table has 0 rows, a duplicate message is shown.
Before:

After:

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
This commit is contained in:
commit
f4660c950e
@ -3683,7 +3683,7 @@ class Results
|
||||
|
||||
// 2.1 Prepares a messages with position information
|
||||
$sqlQueryMessage = '';
|
||||
if ($displayParts['query_stats'] == '1') {
|
||||
if ($displayParts['query_stats'] == '1' && $total > 0) {
|
||||
$message = $this->setMessageInformation(
|
||||
$sortedColumnMessage,
|
||||
$analyzedSqlResults,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user