- Do an init system so we don't get an [] => '' property
// 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