From 3e8a8aed46b632ec30dfd7927b64d1ccb244e6b9 Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Tue, 26 Jan 2016 11:29:24 +0900 Subject: [PATCH] Fix empty thumbnail type for documents on new install --- modules/document/document.item.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/document/document.item.php b/modules/document/document.item.php index 2bf792187..589a0cbd1 100644 --- a/modules/document/document.item.php +++ b/modules/document/document.item.php @@ -860,7 +860,7 @@ class documentItem extends Object $config = $oDocumentModel->getDocumentConfig(); $GLOBALS['__document_config__'] = $config; } - $thumbnail_type = $config->thumbnail_type; + $thumbnail_type = $config->thumbnail_type ?: 'crop'; } // Define thumbnail information