X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2FBarrel.php;h=7eb24a54efe1cf88dc78836e4c4f795b81ec4331;hb=7e17ed7462e2978bc760a11661a75bae5ab0beb4;hp=1a78dde4c46a9f5d22f43ce346dbe44c5ca95586;hpb=a511b644a4bc7bb52da80e0058ed285c1566b3d2;p=diogenes.git diff --git a/include/Barrel.php b/include/Barrel.php index 1a78dde..7eb24a5 100644 --- a/include/Barrel.php +++ b/include/Barrel.php @@ -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'");