projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4677fb7
)
Make sure $results is defined.
author
Michael J. Rubinsky
<mrubinsk@horde.org>
Thu, 23 Sep 2010 17:27:09 +0000
(13:27 -0400)
committer
Michael J. Rubinsky
<mrubinsk@horde.org>
Thu, 23 Sep 2010 17:27:09 +0000
(13:27 -0400)
jonah/lib/Driver/Sql.php
patch
|
blob
|
history
diff --git
a/jonah/lib/Driver/Sql.php
b/jonah/lib/Driver/Sql.php
index
fe477fd
..
0bf257a
100644
(file)
--- a/
jonah/lib/Driver/Sql.php
+++ b/
jonah/lib/Driver/Sql.php
@@
-454,6
+454,7
@@
class Jonah_Driver_Sql extends Jonah_Driver
$start = isset($criteria['startnumber']) ? $criteria['startnumber'] : 0;
Horde::logMessage('SQL Query by Jonah_Driver_sql::_getStories(): ' . $sql, 'DEBUG');
if ($limit || $start != 0) {
+ $results = array();
$rows = $this->_db->limitQuery($sql, $start, $limit, $values );
while ($rows->fetchInto($row, DB_FETCHMODE_ASSOC)) {
$results[] = $row;