diff --git a/php/elFinderVolumeDropbox.class.php b/php/elFinderVolumeDropbox.class.php index 8996e37df..740b8edf0 100644 --- a/php/elFinderVolumeDropbox.class.php +++ b/php/elFinderVolumeDropbox.class.php @@ -656,7 +656,7 @@ class elFinderVolumeDropbox extends elFinderVolumeDriver { protected function doSearch($path, $q, $mimes) { $result = array(); $sth = $this->DB->prepare('select dat from '.$this->DB_TableName.' WHERE path LIKE ? AND fname LIKE ?'); - $sth->execute(array('%'.(($path === $this->root)? '' : strtolower($path)), '%'.strtolower($q).'%')); + $sth->execute(array('%'.(($path === '/')? '' : strtolower($path)), '%'.strtolower($q).'%')); $res = $sth->fetchAll(PDO::FETCH_COLUMN); if ($res) { foreach($res as $raw) {