From 02c9b03b8e29303090e159160b011bdac1dc4d51 Mon Sep 17 00:00:00 2001
From: Johannes Willnecker <johannes@willnecker.com>
Date: Thu, 5 Jul 2012 21:42:39 +0200
Subject: [PATCH] Missing dir added.

---
 apps/gallery/lib/managers.php | 1 +
 1 file changed, 1 insertion(+)

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;
 	}
-- 
GitLab