@@ -409,7 +409,7 @@ public function getParentNode(Model $Model, $id = null, $fields = null, $recursi
409
409
extract (array_merge (array ('id ' => null ), $ id ));
410
410
}
411
411
$ overrideRecursive = $ recursive ;
412
- if (empty ($ id )) {
412
+ if (empty ($ id )) {
413
413
$ id = $ Model ->id ;
414
414
}
415
415
extract ($ this ->settings [$ Model ->alias ]);
@@ -442,7 +442,7 @@ public function getPath(Model $Model, $id = null, $fields = null, $recursive = n
442
442
extract (array_merge (array ('id ' => null ), $ id ));
443
443
}
444
444
$ overrideRecursive = $ recursive ;
445
- if (empty ($ id )) {
445
+ if (empty ($ id )) {
446
446
$ id = $ Model ->id ;
447
447
}
448
448
extract ($ this ->settings [$ Model ->alias ]);
@@ -481,7 +481,7 @@ public function moveDown(Model $Model, $id = null, $number = 1) {
481
481
if (!$ number ) {
482
482
return false ;
483
483
}
484
- if (empty ($ id )) {
484
+ if (empty ($ id )) {
485
485
$ id = $ Model ->id ;
486
486
}
487
487
extract ($ this ->settings [$ Model ->alias ]);
@@ -539,7 +539,7 @@ public function moveUp(Model $Model, $id = null, $number = 1) {
539
539
if (!$ number ) {
540
540
return false ;
541
541
}
542
- if (empty ($ id )) {
542
+ if (empty ($ id )) {
543
543
$ id = $ Model ->id ;
544
544
}
545
545
extract ($ this ->settings [$ Model ->alias ]);
@@ -864,7 +864,7 @@ protected function _setParent(Model $Model, $parentId = null, $created = false)
864
864
)));
865
865
$ edge = $ this ->_getMax ($ Model , $ scope , $ right , $ recursive , $ created );
866
866
867
- if (empty ($ parentId )) {
867
+ if (empty ($ parentId )) {
868
868
$ this ->_sync ($ Model , $ edge - $ node [$ left ] + 1 , '+ ' , 'BETWEEN ' . $ node [$ left ] . ' AND ' . $ node [$ right ], $ created );
869
869
$ this ->_sync ($ Model , $ node [$ right ] - $ node [$ left ] + 1 , '- ' , '> ' . $ node [$ left ], $ created );
870
870
} else {
0 commit comments