Skip to content

Commit 6694afa

Browse files
authored
Add message if no rows returned
1 parent 95d37f6 commit 6694afa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/ezsqlModel.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ public function varDump($mixed = null)
476476
}
477477

478478
echo "<b>Last Rows Returned:</b><br>";
479-
echo ((!empty($this->last_result) && \count($this->last_result) > 0) ? print_r($this->last_result[0]) : '')."\n";
479+
echo ((!empty($this->last_result) && \count($this->last_result) > 0) ? print_r($this->last_result[0]) : 'No rows returned')."\n";
480480
echo "</font></pre></font></blockquote></td></tr></table>";//.$this->donation();
481481
echo "\n<hr size=1 noshade color=dddddd>";
482482

@@ -676,4 +676,4 @@ public function queryResult()
676676
{
677677
return $this->last_result;
678678
}
679-
} // ezsqlModel
679+
} // ezsqlModel

0 commit comments

Comments
 (0)