From 607f1bb64c4caa440fb1993562a151bec9160a41 Mon Sep 17 00:00:00 2001 From: Nick Jenkins Date: Wed, 3 Jan 2007 05:42:51 +0000 Subject: [PATCH] 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 --- includes/DateFormatter.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ) { -- 2.20.1