]> source.dussan.org Git - nextcloud-server.git/commitdiff
Missing dir added.
authorJohannes Willnecker <johannes@willnecker.com>
Thu, 5 Jul 2012 19:42:39 +0000 (21:42 +0200)
committerJörn Friedrich Dreyer <jfd@butonic.de>
Tue, 10 Jul 2012 14:58:37 +0000 (16:58 +0200)
apps/gallery/lib/managers.php

index 94e7565832dbae75553547d638162e23cd9dfc8b..9ed1938742e30ae34e3b1a9b00ae20c49293b76a 100644 (file)
@@ -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;
        }