MTrack/SCM/Git/Repo.php
authorAlan Knowles <alan@roojs.com>
Sat, 3 Nov 2012 05:05:35 +0000 (13:05 +0800)
committerAlan Knowles <alan@roojs.com>
Sat, 3 Nov 2012 05:05:35 +0000 (13:05 +0800)
MTrack/SCM/Git/Repo.php

index 9885ed4..667defd 100644 (file)
@@ -254,7 +254,7 @@ HOOK;
                 
             /// oh what a horible hack.. - bad api design here.
             } else if (is_object($limit) ) {
-                foreach($limit as $k=>$v) {
+                foreach((array)$limit as $k=>$v) {
                      
                     $args[] = ($k = '-') ? $v : ('--'. $k .'='. $v);