diff --git a/bridges/php/handler.php b/bridges/php/handler.php index cde47a3b..1429aafa 100644 --- a/bridges/php/handler.php +++ b/bridges/php/handler.php @@ -196,7 +196,7 @@ public function getContent($path) if (Request::getApiParam('mode') === 'delete') { $path = Request::getApiParam('path'); - $result = $oFtp->delete($path); + $result = $path ? $oFtp->delete($path) : false; if (! $result) { throw new Exception("Unknown error removing this item"); }