From 4fdac6e7f06924b631035572702d7829f2bded11 Mon Sep 17 00:00:00 2001 From: Tekimaki Date: Wed, 25 Mar 2009 23:38:21 +0000 Subject: if no func then dont try to run false --- plugins/mime.default.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/mime.default.php b/plugins/mime.default.php index d6816bc..cd1f463 100644 --- a/plugins/mime.default.php +++ b/plugins/mime.default.php @@ -1,9 +1,9 @@ - * @version $Revision: 1.46 $ + * @version $Revision: 1.47 $ * created Thursday May 08, 2008 * @package liberty * @subpackage liberty_mime_handler @@ -245,7 +245,7 @@ if( !function_exists( 'mime_default_load' )) { // this will fetch the correct thumbnails $thumbHash['storage_path'] = $row['storage_path']; $canThumbFunc = liberty_get_function( 'can_thumbnail' ); - if( $canThumbFunc( $row['mime_type'] )) { + if( $canThumbFunc && $canThumbFunc( $row['mime_type'] )) { $thumbHash['default_image'] = LIBERTY_PKG_URL.'icons/generating_thumbnails.png'; } $ret['thumbnail_url'] = liberty_fetch_thumbnails( $thumbHash ); -- cgit v1.3