Skip to content
This repository has been archived by the owner on Jul 25, 2022. It is now read-only.

Commit

Permalink
Allow last argument in order->move to be object
Browse files Browse the repository at this point in the history
  • Loading branch information
Romans Malinovskis committed Oct 26, 2011
1 parent f00fd79 commit 0657fe2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Order.php
Expand Up @@ -41,6 +41,7 @@ function useArray(&$array){
}
function move($name,$where,$relative=null){
if(is_object($name))$name=$name->short_name;
if(is_object($relative))$relative=$relative->short_name;
$this->rules[]=array($name,$where,$relative);
return $this;
}
Expand Down

0 comments on commit 0657fe2

Please sign in to comment.