aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Willnecker <johannes@willnecker.com>2012-07-05 21:42:39 +0200
committerJörn Friedrich Dreyer <jfd@butonic.de>2012-07-10 16:58:37 +0200
commit02c9b03b8e29303090e159160b011bdac1dc4d51 (patch)
tree554d3292d00dafad796b901611355748dbb4696d
parent570ea787f1520b74165c9974bb79526ba28a8c9a (diff)
downloadnextcloud-server-02c9b03b8e29303090e159160b011bdac1dc4d51.tar.gz
nextcloud-server-02c9b03b8e29303090e159160b011bdac1dc4d51.zip
Missing dir added.
-rw-r--r--apps/gallery/lib/managers.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/gallery/lib/managers.php b/apps/gallery/lib/managers.php
index 94e7565832d..9ed1938742e 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;
}