diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-01-19 04:48:12 -0800 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-01-19 04:48:12 -0800 |
commit | f354717c4cdda8fb2910fec56b5663283ca9d893 (patch) | |
tree | aec37c7bf304d4580912c7ecbf7d12fbbe985663 /apps | |
parent | 903b330cccaad0233274199c9ee8f047478bb72e (diff) | |
parent | f4c198b907f3cbd59555a72693c48123736b7cbb (diff) | |
download | nextcloud-server-f354717c4cdda8fb2910fec56b5663283ca9d893.tar.gz nextcloud-server-f354717c4cdda8fb2910fec56b5663283ca9d893.zip |
Merge pull request #6819 from owncloud/files-ispreviewenabledwarningfix
Fixed isPreviewAvailable warnings in log
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files/templates/part.list.php | 2 | ||||
-rw-r--r-- | apps/files_sharing/public.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/templates/part.list.php b/apps/files/templates/part.list.php index 2f630e1f014..f4fb96a7a7c 100644 --- a/apps/files/templates/part.list.php +++ b/apps/files/templates/part.list.php @@ -18,7 +18,7 @@ $totalsize = 0; ?> data-size="<?php p($file['size']);?>" data-etag="<?php p($file['etag']);?>" data-permissions="<?php p($file['permissions']); ?>"> - <?php if($file['isPreviewAvailable']): ?> + <?php if(isset($file['isPreviewAvailable']) and $file['isPreviewAvailable']): ?> <td class="filename svg preview-icon" <?php else: ?> <td class="filename svg" diff --git a/apps/files_sharing/public.php b/apps/files_sharing/public.php index ef4345da20e..d050efd5b32 100644 --- a/apps/files_sharing/public.php +++ b/apps/files_sharing/public.php @@ -189,8 +189,8 @@ if (isset($path)) { } else { $i['extension'] = ''; } - $i['isPreviewAvailable'] = \OC::$server->getPreviewManager()->isMimeSupported($i['mimetype']); } + $i['isPreviewAvailable'] = \OC::$server->getPreviewManager()->isMimeSupported($i['mimetype']); $i['directory'] = $getPath; $i['permissions'] = OCP\PERMISSION_READ; $i['icon'] = determineIcon($i, $basePath, $token); |