diff options
author | Lukas Reschke <lukas@owncloud.com> | 2014-09-30 14:08:43 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2014-09-30 14:08:43 +0200 |
commit | 96d9e0eb5b52ce13015c1c1843dbad8b2c218236 (patch) | |
tree | de4f259c3e406c0a61bad9e21d50652e140850ac /lib/private/preview.php | |
parent | 5292a14cdfa9efe6d9220b341f3261fe72c39b17 (diff) | |
download | nextcloud-server-96d9e0eb5b52ce13015c1c1843dbad8b2c218236.tar.gz nextcloud-server-96d9e0eb5b52ce13015c1c1843dbad8b2c218236.zip |
Remove uneeded slicing of element
The "*/*" provider has been removed. This is therefore not needed anymore and leads to unexpected bugs.
Please notice that this is only relevant for master.
Diffstat (limited to 'lib/private/preview.php')
-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 c93f5d5516f..60653a3b118 100755 --- a/lib/private/preview.php +++ b/lib/private/preview.php @@ -812,9 +812,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; } |