From ed0b2105d662867c74845438933d0241fb4fb75f Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Sun, 26 Oct 2008 11:16:15 +0000 Subject: Do not output PHP warnings on input confusing the tokenizer --- it_syntaxconverter.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- cgit v1.2.3