Skip to content

Commit

Permalink
fix prevent empty value that removes all
Browse files Browse the repository at this point in the history
  • Loading branch information
joni2back committed Feb 25, 2016
1 parent b16e374 commit fc3e87f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bridges/php/handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down

0 comments on commit fc3e87f

Please sign in to comment.