commit | 4003718f35247ef9b4a8d678389bda639677bac7 | [log] [tgz] |
---|---|---|
author | admin <devnull@localhost> | Wed Oct 11 19:16:58 2006 +0000 |
committer | admin <devnull@localhost> | Wed Oct 11 19:16:58 2006 +0000 |
tree | 9cb7a9a559b5adfc4f5c6139078b4753aecb544d | |
parent | 2799120c10b8d2544dd71e37b3a48c1eaa834c48 [diff] [blame] |
diff --git a/system/libraries/Table.php b/system/libraries/Table.php index 0f2c49d..61d04ee 100644 --- a/system/libraries/Table.php +++ b/system/libraries/Table.php
@@ -211,9 +211,13 @@ } // Next blast through the result array and build out the rows - foreach ($query->result_array() as $row) + + if ($query->num_rows() > 0) { - $this->rows[] = $row; + foreach ($query->result_array() as $row) + { + $this->rows[] = $row; + } } }