From f2a8def3952940d1f01873f5a3cd15a34a34c237 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sat, 10 Apr 2004 11:25:24 +0000 Subject: [PATCH] Fix notice. The isset() check consistently produces a big ugly notice about an out-of-range string access (tested on PHP 4.3.2). --- includes/Tokenizer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Tokenizer.php b/includes/Tokenizer.php index 5d92f7fa38..3a29306b65 100644 --- a/includes/Tokenizer.php +++ b/includes/Tokenizer.php @@ -62,7 +62,7 @@ class Tokenizer { return false; while ( $this->mPos <= $this->mTextLength ) { - switch ( $ch = isset($this->mText[$this->mPos]) ? $this->mText[$this->mPos] : '' ) { + switch ( @$ch = $this->mText[$this->mPos] ) { case 'R': // for "RFC " if ( $this->mText[$this->mPos+1] == 'F' && $this->mText[$this->mPos+2] == 'C' && -- 2.20.1