diff options
author | Bartek Przybylski <bart.p.pl@gmail.com> | 2012-03-15 00:09:06 +0100 |
---|---|---|
committer | Bartek Przybylski <bart.p.pl@gmail.com> | 2012-03-15 00:09:06 +0100 |
commit | 0fadbee69941efe7d08dc8533145046a9cccb76e (patch) | |
tree | 04483cf074b87cb99677d73a52b0f00f64d79f67 /apps/gallery | |
parent | 193e93e4a9f7d9f2c9c812fb217011d13c9d1237 (diff) | |
download | nextcloud-server-0fadbee69941efe7d08dc8533145046a9cccb76e.tar.gz nextcloud-server-0fadbee69941efe7d08dc8533145046a9cccb76e.zip |
fix adding photo to incorrect gallery
Diffstat (limited to 'apps/gallery')
-rw-r--r-- | apps/gallery/lib/scanner.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/gallery/lib/scanner.php b/apps/gallery/lib/scanner.php index 0fa4d08d3ba..5791662522a 100644 --- a/apps/gallery/lib/scanner.php +++ b/apps/gallery/lib/scanner.php @@ -52,7 +52,7 @@ class OC_Gallery_Scanner { // don't duplicate galleries with same path if (!($albumId = $result->fetchRow())) { OC_Gallery_Album::create($owner, $name, $path); - $result = OC_Gallery_Album::find($owner, $name); + $result = OC_Gallery_Album::find($owner, $name, $path); $albumId = $result->fetchRow(); } $albumId = $albumId['album_id']; |