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:

![before](https://github.com/user-attachments/assets/632ef9aa-5ab0-48c8-91a7-311139a9bbe4)

After:

![after](https://github.com/user-attachments/assets/c2215f88-d108-44f4-a6ec-1d24aca1c745)

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
This commit is contained in:
Maurício Meneghini Fauth 2024-07-29 16:17:38 -03:00
commit f4660c950e
No known key found for this signature in database
GPG Key ID: 6A16FD38AFC89CC8

View File

@ -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,