* improved - after adding a page, return to the calling url
[diogenes.git] / include / Barrel.php
index 1a78dde..7eb24a5 100644 (file)
@@ -310,6 +310,10 @@ class Diogenes_Barrel
   {
     global $globals;
 
+    if (!$path) {
+      $caller->info("rmPath: will not delete from root!");
+      return false;
+    }
     $curpid = $this->getPID($path);
     if (!$curpid) {
       $caller->info("rmPath: could not find '$path'");