diff --git a/apps/gallery/lib/scanner.php b/apps/gallery/lib/scanner.php index 0fa4d08d3b..5791662522 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']; diff --git a/lib/filecache.php b/lib/filecache.php index 15eec43abe..280a9929db 100644 --- a/lib/filecache.php +++ b/lib/filecache.php @@ -522,7 +522,7 @@ class OC_FileCache{ } /** - * fine files by mimetype + * find files by mimetype * @param string $part1 * @param string $part2 (optional) * @param string root (optional)