mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-06 15:10:44 -04:00
NULL -> null
This commit is contained in:
@@ -110,7 +110,7 @@ class ORM_MPTT_Core extends ORM {
|
||||
* @param integer SQL offset
|
||||
* @return array ORM
|
||||
*/
|
||||
function children($limit=NULL, $offset=0) {
|
||||
function children($limit=null, $offset=0) {
|
||||
if (!isset($this->children)) {
|
||||
$this->children =
|
||||
$this->where("parent_id", $this->id)
|
||||
@@ -143,7 +143,7 @@ class ORM_MPTT_Core extends ORM {
|
||||
* @param string type to return
|
||||
* @return object ORM_Iterator
|
||||
*/
|
||||
function descendants($limit=NULL, $offset=0, $type=null) {
|
||||
function descendants($limit=null, $offset=0, $type=null) {
|
||||
if (!isset($this->descendants[$type][$offset])) {
|
||||
$this->where("left >", $this->left)
|
||||
->where("right <=", $this->right);
|
||||
|
||||
Reference in New Issue
Block a user