diff --git a/apps/gallery/lib/managers.php b/apps/gallery/lib/managers.php index 94e7565832..9ed1938742 100644 --- a/apps/gallery/lib/managers.php +++ b/apps/gallery/lib/managers.php @@ -30,6 +30,7 @@ class DatabaseManager { $stmt->execute(array(\OCP\USER::getUser(), $path, $width, $height)); $ret = array('path' => $path, 'width' => $width, 'height' => $height); unset($image); + $dir = dirname($path); $this->cache[$dir][$path] = $ret; return $ret; }