From fc3e87f7a281f48b9a3ce69e4c26fd8d9a6fa856 Mon Sep 17 00:00:00 2001 From: Jonas Sciangula Street Date: Thu, 25 Feb 2016 11:59:53 -0300 Subject: [PATCH] fix prevent empty value that removes all --- bridges/php/handler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); }