diff options
| author | Tekimaki <tekimaki_admin@users.sourceforge.net> | 2009-03-25 23:38:21 +0000 |
|---|---|---|
| committer | Tekimaki <tekimaki_admin@users.sourceforge.net> | 2009-03-25 23:38:21 +0000 |
| commit | 4fdac6e7f06924b631035572702d7829f2bded11 (patch) | |
| tree | f37e564aa7d505fe44133fcc21818fb54125e129 | |
| parent | 7cf38bc57b50324c9bd9069fe34fa2ab35c9f828 (diff) | |
| download | liberty-4fdac6e7f06924b631035572702d7829f2bded11.tar.gz liberty-4fdac6e7f06924b631035572702d7829f2bded11.tar.bz2 liberty-4fdac6e7f06924b631035572702d7829f2bded11.zip | |
if no func then dont try to run false
| -rw-r--r-- | plugins/mime.default.php | 6 |
1 files 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 @@ <?php /** - * @version $Header: /cvsroot/bitweaver/_bit_liberty/plugins/mime.default.php,v 1.46 2009/03/18 20:17:26 spiderr Exp $ + * @version $Header: /cvsroot/bitweaver/_bit_liberty/plugins/mime.default.php,v 1.47 2009/03/25 23:38:21 tekimaki_admin Exp $ * * @author xing <xing@synapse.plus.com> - * @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 ); |
