From: Brion Vibber Date: Sat, 10 Apr 2004 11:25:24 +0000 (+0000) Subject: Fix notice. The isset() check consistently produces a big ugly notice about an out... X-Git-Tag: 1.3.0beta1~475 X-Git-Url: http://git.cyclocoop.org/url?a=commitdiff_plain;h=f2a8def3952940d1f01873f5a3cd15a34a34c237;p=lhc%2Fweb%2Fwiklou.git Fix notice. The isset() check consistently produces a big ugly notice about an out-of-range string access (tested on PHP 4.3.2). --- 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' &&