From: Chad Horohoe Date: Wed, 1 Sep 2010 14:30:47 +0000 (+0000) Subject: $_ENV['HOME'] might not exist for everyone, doesn't on OSX X-Git-Tag: 1.31.0-rc.0~35249 X-Git-Url: http://git.cyclocoop.org/%27.%28%24current%20%3E%202?a=commitdiff_plain;h=fdfcfd5694ce1470b04a5f842e01d74892370c80;p=lhc%2Fweb%2Fwiklou.git $_ENV['HOME'] might not exist for everyone, doesn't on OSX --- diff --git a/maintenance/eval.php b/maintenance/eval.php index 7b449bbd88..6ba613b60f 100644 --- a/maintenance/eval.php +++ b/maintenance/eval.php @@ -48,7 +48,8 @@ if ( function_exists( 'readline_add_history' ) } if ( $useReadline ) { - $historyFile = "{$_ENV['HOME']}/.mweval_history"; + $historyFile = isset( $_ENV['HOME'] ) ? + "{$_ENV['HOME']}/.mweval_history" : '.mweval_history'; readline_read_history( $historyFile ); }