summaryrefslogtreecommitdiff
path: root/install.php
diff options
context:
space:
mode:
authorChristian Fowler <spider@viovio.com>2009-03-06 17:07:58 +0000
committerChristian Fowler <spider@viovio.com>2009-03-06 17:07:58 +0000
commit220b82323aba8b15e1142c2f603b0276bd580e29 (patch)
tree4cd3a81174c3599fd519f031ed698296123d9347 /install.php
parent8c33b0615dd460e0f1b640b564a5203da7981b41 (diff)
downloadinstall-220b82323aba8b15e1142c2f603b0276bd580e29.tar.gz
install-220b82323aba8b15e1142c2f603b0276bd580e29.tar.bz2
install-220b82323aba8b15e1142c2f603b0276bd580e29.zip
only check value when get_cfg_var( 'memory_limit' ) does not return FALSE
Diffstat (limited to 'install.php')
-rw-r--r--install.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/install.php b/install.php
index dc40024..0a4647b 100644
--- a/install.php
+++ b/install.php
@@ -1,6 +1,6 @@
<?php
/**
- * @version $Header: /cvsroot/bitweaver/_bit_install/install.php,v 1.27 2009/02/03 22:24:52 dansut Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_install/install.php,v 1.28 2009/03/06 17:07:58 spiderr Exp $
* @package install
* @subpackage functions
*/
@@ -21,7 +21,7 @@ if( !empty( $_REQUEST['step'] ) && $_REQUEST['step'] == 0 ) {
// Early check of memory limit just to be sure we can run.
// Set the number '15' to a lower value if you know that the install process can handle it.
-if( eregi_replace( 'M','',get_cfg_var( 'memory_limit' )) < 15 ) {
+if( get_cfg_var( 'memory_limit' ) !== FALSE && eregi_replace( 'M','',get_cfg_var( 'memory_limit' )) < 15 ) {
$dir = dirname( $_SERVER['PHP_SELF'] );
// We don't use smarty to avoid using any memory since we already know there is a problem.
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">