From 92df9328f5d1777de5bc44f4829a47fa307c2752 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Mon, 23 Jan 2006 05:24:22 +0000 Subject: [PATCH] - We can now get properties on / - Do an init system so we don't get an [] => '' property --- includes/cachev.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/includes/cachev.php b/includes/cachev.php index 3c11f3d..b940f82 100644 --- a/includes/cachev.php +++ b/includes/cachev.php @@ -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 -- 2.22.5