From: Alexandre Emsenhuber Date: Sat, 5 Sep 2009 19:40:52 +0000 (+0000) Subject: Fix for r55810: oly set $optionsWithArgs if it's not defined, as in the old version... X-Git-Tag: 1.31.0-rc.0~39908 X-Git-Url: https://git.cyclocoop.org/admin/?a=commitdiff_plain;h=11c921c459dd8a2bc4da585cfea1555712fbc778;p=lhc%2Fweb%2Fwiklou.git Fix for r55810: oly set $optionsWithArgs if it's not defined, as in the old version; when defined by scripts, it's always set before including commandLine.inc, and thus setting it always to an empty array will break these scripts --- diff --git a/maintenance/commandLine.inc b/maintenance/commandLine.inc index e241d5e931..6ed7b2e5b3 100644 --- a/maintenance/commandLine.inc +++ b/maintenance/commandLine.inc @@ -4,7 +4,10 @@ * Backwards-compatibility wrapper for old-style maintenance scripts */ require( dirname(__FILE__) . '/Maintenance.php' ); -$optionsWithArgs = array(); + +if ( !isset( $optionsWithArgs ) ) { + $optionsWithArgs = array(); +} class CommandLineInc extends Maintenance { public function __construct() {