mirror of
https://github.com/Studio-42/elFinder
synced 2026-06-08 12:37:09 +00:00
[php:VolumeDropbox] includes items only under root path in search result
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user