From ff37f8342566e65c8026f3c800f620ca6c5c6e8f Mon Sep 17 00:00:00 2001 From: wjames5 Date: Mon, 23 Nov 2009 20:35:39 +0000 Subject: make sure shell_exec is available before using it --- BitThemes.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BitThemes.php b/BitThemes.php index f9074dc..69cbe32 100644 --- a/BitThemes.php +++ b/BitThemes.php @@ -1,6 +1,6 @@ isFeatureActive( 'themes_packed_js_css' ) && shell_exec( 'which java' ) ) { + if( $pPack && $gBitSystem->isFeatureActive( 'themes_packed_js_css' ) && function_exists( 'shell_exec' ) && shell_exec( 'which java' ) ) { if( is_file( $pJavascriptFile )) { // get a name for the cache file we're going to store $cachefile = md5( $pJavascriptFile ).'.js'; -- cgit v1.3