diff options
author | Lukas Reschke <lukas@owncloud.com> | 2014-10-12 19:45:00 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2014-10-12 19:45:00 +0200 |
commit | bf674487aa8fb56c65120ed17b8f9c9e54b20c15 (patch) | |
tree | e48a2881e2d2a39264e3e79b379a24d15dc56d35 /lib | |
parent | a3635fedbbc18093ec36958fc9d3104decc02b23 (diff) | |
parent | 96d9e0eb5b52ce13015c1c1843dbad8b2c218236 (diff) | |
download | nextcloud-server-bf674487aa8fb56c65120ed17b8f9c9e54b20c15.tar.gz nextcloud-server-bf674487aa8fb56c65120ed17b8f9c9e54b20c15.zip |
Merge pull request #11367 from owncloud/removeIsMimeSupported
Remove uneeded slicing of element
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/private/preview.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/private/preview.php b/lib/private/preview.php index 4b21e324037..e9bfb3b9285 100755 --- a/lib/private/preview.php +++ b/lib/private/preview.php @@ -814,9 +814,7 @@ class Preview { self::initProviders(); } - //remove last element because it has the mimetype * - $providers = array_slice(self::$providers, 0, -1); - foreach ($providers as $supportedMimeType => $provider) { + foreach (self::$providers as $supportedMimeType => $provider) { if (preg_match($supportedMimeType, $mimeType)) { return true; } |