From: Michael J. Rubinsky Date: Sun, 10 Oct 2010 23:21:22 +0000 (-0400) Subject: $ob might not exist at all here X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=132f32efc088b8680b8c51614f7133931d5a4880;p=horde.git $ob might not exist at all here --- diff --git a/framework/Vcs/lib/Horde/Vcs.php b/framework/Vcs/lib/Horde/Vcs.php index ed93d2bd3..bc6c6fcdc 100644 --- a/framework/Vcs/lib/Horde/Vcs.php +++ b/framework/Vcs/lib/Horde/Vcs.php @@ -528,7 +528,10 @@ class Horde_Vcs } } - if (!$ob) { $ob = new $class($filename, $opts); } + if (empty($ob) || !$ob) { + $ob = new $class($filename, $opts); + + } $ob->setRepository($this); $ob->applySort(self::SORT_AGE); @@ -555,7 +558,10 @@ class Horde_Vcs } } - if (!$ob) { $ob = new $class($rev); } + if (empty($ob) || !$ob) { + $ob = new $class($rev); + + } $ob->setRepository($this); $ob->setFile($fl);