Skip to content

Commit 0be3695

Browse files
committed
fixBug: Error when trying to use $db->vardump()
Fixes #163
1 parent e24fd33 commit 0be3695

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/ezsqlModel.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,8 @@ public function varDump($mixed = null)
475475
echo " " . $func_string ."<br>\n";
476476
}
477477

478-
echo "<b>Last Rows Returned:</b> ".((\count($this->last_result) > 0) ? $this->last_result[0] : '')."\n";
478+
echo "<b>Last Rows Returned:</b><br>";
479+
echo ((\count($this->last_result) > 0) ? print_r($this->last_result[0]) : '')."\n";
479480
echo "</font></pre></font></blockquote></td></tr></table>";//.$this->donation();
480481
echo "\n<hr size=1 noshade color=dddddd>";
481482

0 commit comments

Comments
 (0)