Index: branches/wmf/1.18wmf1/maintenance/Maintenance.php |
— | — | @@ -923,7 +923,7 @@ |
924 | 924 | |
925 | 925 | # This is for the IRC scripts, which now run as the apache user |
926 | 926 | # The apache user doesn't have access to the wikiadmin_pass command |
927 | | - if ( $_ENV['USER'] == 'apache' ) { |
| 927 | + if ( isset( $_ENV['USER'] ) && $_ENV['USER'] == 'apache' ) { |
928 | 928 | # if ( posix_geteuid() == 48 ) { |
929 | 929 | $wgUseNormalUser = true; |
930 | 930 | } |