diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2009-11-26 19:36:57 -0800 |
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2009-11-26 19:36:57 -0800 |
| commit | a3d904bcbab7cb153c2b617fc4389175ed00a4fc (patch) | |
| tree | 91e1879c2815e388aaf5c16d707947a25251bd9c /modules/gallery | |
| parent | e8fb773b68335e955602c0d912e13c0f5ba23d58 (diff) | |
ORM::find_all() now uses null as the default value for offset.
Diffstat (limited to 'modules/gallery')
| -rw-r--r-- | modules/gallery/libraries/ORM_MPTT.php | 2 | ||||
| -rw-r--r-- | modules/gallery/models/item.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/gallery/libraries/ORM_MPTT.php b/modules/gallery/libraries/ORM_MPTT.php index 90b9d38a..a67f05be 100644 --- a/modules/gallery/libraries/ORM_MPTT.php +++ b/modules/gallery/libraries/ORM_MPTT.php @@ -150,7 +150,7 @@ class ORM_MPTT_Core extends ORM { * @param array order_by * @return array ORM */ - function children($limit=null, $offset=0, $where=null, $order_by=array("id" => "ASC")) { + function children($limit=null, $offset=null, $where=null, $order_by=array("id" => "ASC")) { if ($where) { $this->merge_where($where); } diff --git a/modules/gallery/models/item.php b/modules/gallery/models/item.php index acc4e96f..16c57dbc 100644 --- a/modules/gallery/models/item.php +++ b/modules/gallery/models/item.php @@ -597,7 +597,7 @@ class Item_Model extends ORM_MPTT { * @param array order_by * @return array ORM */ - function children($limit=null, $offset=0, $where=array(), $order_by=null) { + function children($limit=null, $offset=null, $where=array(), $order_by=null) { if (empty($order_by)) { $order_by = array($this->sort_column => $this->sort_order); // Use id as a tie breaker |
