From: stronk7 Date: Thu, 9 Mar 2006 17:29:58 +0000 (+0000) Subject: Avoid some minor notices and warnings (reported as bug 2814 to Typo3 team) X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=e05fc498eae8447eb3095aa050cd107a2a2d88ce;p=moodle.git Avoid some minor notices and warnings (reported as bug 2814 to Typo3 team) (http://bugs.typo3.org/view.php?id=2814) --- 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; } }