summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2009-01-16 13:03:12 +0000
committerMax Kremmel <xing@synapse.plus.com>2009-01-16 13:03:12 +0000
commitce6cb47a572b98c3ff5daaaf8a2792b5d3701614 (patch)
tree18352705460f9859c2bc2b92431a558b247eba82
parent7e096f23e30dd91190ffebfb5aa98f3326090938 (diff)
downloadliberty-ce6cb47a572b98c3ff5daaaf8a2792b5d3701614.tar.gz
liberty-ce6cb47a572b98c3ff5daaaf8a2792b5d3701614.tar.bz2
liberty-ce6cb47a572b98c3ff5daaaf8a2792b5d3701614.zip
undefined variable fix
-rw-r--r--plugins/mime.video.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/mime.video.php b/plugins/mime.video.php
index 72fa59d..473cb97 100644
--- a/plugins/mime.video.php
+++ b/plugins/mime.video.php
@@ -1,9 +1,9 @@
<?php
/**
- * @version $Header: /cvsroot/bitweaver/_bit_liberty/plugins/mime.video.php,v 1.4 2009/01/15 20:33:02 squareing Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_liberty/plugins/mime.video.php,v 1.5 2009/01/16 13:03:12 squareing Exp $
*
* @author xing <xing@synapse.plus.com>
- * @version $Revision: 1.4 $
+ * @version $Revision: 1.5 $
* created Thursday May 08, 2008
* @package liberty
* @subpackage liberty_mime_handler
@@ -498,7 +498,7 @@ function mime_video_create_thumbnail( $pFile, $pOffset = 60 ) {
$thumbnailer = trim( shell_exec( 'which ffmpegvideothumbnailer' ));
}
- if( is_executable( $thumbnailer )) {
+ if( !empty( $thumbnailer ) && is_executable( $thumbnailer )) {
shell_exec( "$thumbnailer -i '$pFile' -o '$dest_path/thumb.jpg' -s 1024" );
}