diff options
author | Joas Schilling <coding@schilljs.com> | 2017-05-10 14:16:22 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2017-08-01 13:56:12 +0200 |
commit | 80febeae21a30e0c1a040b99860983dfd484556b (patch) | |
tree | 45a4bd305f55ece37dcaa0ee7adf322421d93e87 /apps/files_sharing/templates | |
parent | 7a62fbd205874355abb3b551b182bc61b9c3d3e1 (diff) | |
download | nextcloud-server-80febeae21a30e0c1a040b99860983dfd484556b.tar.gz nextcloud-server-80febeae21a30e0c1a040b99860983dfd484556b.zip |
Fix comparisons in the sharing app
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/files_sharing/templates')
-rw-r--r-- | apps/files_sharing/templates/public.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/templates/public.php b/apps/files_sharing/templates/public.php index 36b4dcdbe1c..f8d056ef93c 100644 --- a/apps/files_sharing/templates/public.php +++ b/apps/files_sharing/templates/public.php @@ -75,7 +75,7 @@ $maxUploadFilesize = min($upload_max_filesize, $post_max_size); <?php if (isset($_['folder'])): ?> <?php print_unescaped($_['folder']); ?> <?php else: ?> - <?php if ($_['previewEnabled'] && substr($_['mimetype'], 0, strpos($_['mimetype'], '/')) == 'video'): ?> + <?php if ($_['previewEnabled'] && substr($_['mimetype'], 0, strpos($_['mimetype'], '/')) === 'video'): ?> <div id="imgframe"> <video tabindex="0" controls="" preload="none" style="max-width: <?php p($_['previewMaxX']); ?>px; max-height: <?php p($_['previewMaxY']); ?>px"> <source src="<?php p($_['downloadURL']); ?>" type="<?php p($_['mimetype']); ?>" /> |