From e05fc498eae8447eb3095aa050cd107a2a2d88ce Mon Sep 17 00:00:00 2001 From: stronk7 Date: Thu, 9 Mar 2006 17:29:58 +0000 Subject: [PATCH] Avoid some minor notices and warnings (reported as bug 2814 to Typo3 team) (http://bugs.typo3.org/view.php?id=2814) --- lib/textlib.class.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/textlib.class.php b/lib/textlib.class.php index faacd80c83..ea1b87df79 100644 --- a/lib/textlib.class.php +++ b/lib/textlib.class.php @@ -175,7 +175,12 @@ class textlib { */ function specialtoascii($text,$charset='utf-8') { - return $this->typo3cs->specCharsToASCII(strtolower($charset),$text); + /// Avoid some notices from Typo3 code + $oldlevel = error_reporting(E_PARSE); + $result = $this->typo3cs->specCharsToASCII(strtolower($charset),$text); + /// Restore original debug level + error_reporting($oldlevel); + return $result; } } -- 2.39.5