diff --git a/lib/ViewInfoCache.php b/lib/ViewInfoCache.php index 5c7fd5567..84c8d92aa 100644 --- a/lib/ViewInfoCache.php +++ b/lib/ViewInfoCache.php @@ -87,7 +87,7 @@ protected function findInfoByPath($user, $path) { $this->cachePath[$user][$path] = [ 'path' => $path, 'exists' => $exists, - 'is_dir' => $exists ? $this->view->is_dir($path) : false, + 'is_dir' => $exists ? (bool)$this->view->is_dir($path) : false, 'view' => '', ]; @@ -128,7 +128,7 @@ protected function findInfoById($user, $fileId, $filePath) { $cache = [ 'path' => substr($path, strlen('/files')), 'exists' => true, - 'is_dir' => $this->view->is_dir($path), + 'is_dir' => (bool)$this->view->is_dir($path), 'view' => 'trashbin', ]; } catch (NotFoundException $e) {