From: Nick Jenkins Date: Wed, 3 Jan 2007 05:42:51 +0000 (+0000) Subject: Minor tweak for E_STRICT PHP whinging: X-Git-Tag: 1.31.0-rc.0~54685 X-Git-Url: http://git.cyclocoop.org/url?a=commitdiff_plain;h=607f1bb64c4caa440fb1993562a151bec9160a41;p=lhc%2Fweb%2Fwiklou.git Minor tweak for E_STRICT PHP whinging: * Strict Standards: Undefined offset: 1 in includes/DateFormatter.php on line 132 * Strict Standards: Undefined offset: 1 in includes/DateFormatter.php on line 135 --- diff --git a/includes/DateFormatter.php b/includes/DateFormatter.php index dc077fdc60..c795618a77 100644 --- a/includes/DateFormatter.php +++ b/includes/DateFormatter.php @@ -129,10 +129,10 @@ class DateFormatter } for ( $i=1; $i<=self::LAST; $i++ ) { $this->mSource = $i; - if ( @$this->rules[$preference][$i] ) { + if ( isset ( $this->rules[$preference][$i] ) ) { # Specific rules $this->mTarget = $this->rules[$preference][$i]; - } elseif ( @$this->rules[self::ALL][$i] ) { + } elseif ( isset ( $this->rules[self::ALL][$i] ) ) { # General rules $this->mTarget = $this->rules[self::ALL][$i]; } elseif ( $preference ) {