diff --git a/apps/gallery/lib/scanner.php b/apps/gallery/lib/scanner.php index b7e3321b80..b6c402022b 100644 --- a/apps/gallery/lib/scanner.php +++ b/apps/gallery/lib/scanner.php @@ -142,7 +142,6 @@ class OC_Gallery_Scanner { $paths[]=$path; } } - $subs = dirname($path); } sort($paths); return $paths;