diff options
| author | Christian Schneider | 2008-10-26 11:16:15 +0000 | 
|---|---|---|
| committer | Christian Schneider | 2008-10-26 11:16:15 +0000 | 
| commit | ed0b2105d662867c74845438933d0241fb4fb75f (patch) | |
| tree | 38020d2ab5cfc57583dec0de8a23f13ee3353e4c | |
| parent | e2d81af761b9389f7bafb008f3bfa8a8fede9788 (diff) | |
| download | itools-ed0b2105d662867c74845438933d0241fb4fb75f.tar.gz itools-ed0b2105d662867c74845438933d0241fb4fb75f.tar.bz2 itools-ed0b2105d662867c74845438933d0241fb4fb75f.zip | |
Do not output PHP warnings on input confusing the tokenizer
| -rw-r--r-- | it_syntaxconverter.class | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/it_syntaxconverter.class b/it_syntaxconverter.class index f37b60d..6ec8849 100644 --- a/it_syntaxconverter.class +++ b/it_syntaxconverter.class @@ -49,7 +49,7 @@ function it_syntaxconverter($string, $mode = "old")  	$this->input = $string;  	$this->mode = $mode; -	$this->tokens = token_get_all($this->input); +	$this->tokens = @token_get_all($this->input);  	$this->count = count($this->tokens);  	$this->position = 0;  	$this->old =  $this->parse(); |