- We can now get properties on /
authorRobert Sesek <rsesek@bluestatic.org>
Mon, 23 Jan 2006 05:24:22 +0000 (05:24 +0000)
committerRobert Sesek <rsesek@bluestatic.org>
Mon, 23 Jan 2006 05:24:22 +0000 (05:24 +0000)
- Do an init system so we don't get an [] => '' property

includes/cachev.php

index 3c11f3d0ac240af7fe46bb95c8bc24bc195f30c1..b940f82eb00205c9cc284651ee39e0fc70c15332 100644 (file)
@@ -341,12 +341,19 @@ class cacheV
                
                // other part of _nodes: properties
                $output = $this->controller->library->svn('proplist -v -R ' . $this->controller->repospath);
+               $init = false;
                foreach ($output AS $line)
                {
                        if (preg_match('#^Properties on \'(.*?)\':$#', $line, $bits))
                        {
-                               $proplist["$index"]["$curprop"] = trim($proplist["$index"]["$curprop"]);
+                               if ($init == true)
+                               {
+                                       $proplist["$index"]["$curprop"] = trim($proplist["$index"]["$curprop"]);
+                               }
+                               $init = true;
+                               
                                $index = str_replace($this->controller->repospath, '', $bits[1]);
+                               $index = ($index == '' ? '/' : $index);
                                $capture = false;
                        }
                        else