summaryrefslogtreecommitdiff
path: root/modules/gallery/libraries/ORM_MPTT.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-12-22 16:22:24 -0800
committerBharat Mediratta <bharat@menalto.com>2009-12-22 16:22:24 -0800
commita6da027aad5072a85719fc9e201ee946963e74f0 (patch)
treeaf8d159d05fc4f261b77a622fe66e3fba121cde3 /modules/gallery/libraries/ORM_MPTT.php
parent71e154b6748a2bedd2289133c6b4c6f3f58d3603 (diff)
The default value for $offset should always be null (according to the
new K24 ORM). Fix up a bad where tuple in the test.
Diffstat (limited to 'modules/gallery/libraries/ORM_MPTT.php')
-rw-r--r--modules/gallery/libraries/ORM_MPTT.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/libraries/ORM_MPTT.php b/modules/gallery/libraries/ORM_MPTT.php
index 949ca48c..0ea519c9 100644
--- a/modules/gallery/libraries/ORM_MPTT.php
+++ b/modules/gallery/libraries/ORM_MPTT.php
@@ -201,7 +201,7 @@ class ORM_MPTT_Core extends ORM {
* @param array order_by
* @return object ORM_Iterator
*/
- function descendants($limit=null, $offset=0, $where=null, $order_by=array("id" => "ASC")) {
+ function descendants($limit=null, $offset=null, $where=null, $order_by=array("id" => "ASC")) {
if ($where) {
$this->merge_where($where);
}