r104257 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r104256‎ | r104257 | r104258 >
Date:22:45, 25 November 2011
Author:reedy
Status:ok
Tags:
Comment:
PHP Notice: Undefined index: USER in /home/wikipedia/common/php-1.18/maintenance/Maintenance.php on line 926
Modified paths:
  • /branches/wmf/1.18wmf1/maintenance/Maintenance.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.18wmf1/maintenance/Maintenance.php
@@ -923,7 +923,7 @@
924924
925925 # This is for the IRC scripts, which now run as the apache user
926926 # 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' ) {
928928 # if ( posix_geteuid() == 48 ) {
929929 $wgUseNormalUser = true;
930930 }

Status & tagging log