Avoid some minor notices and warnings (reported as bug 2814 to Typo3 team)

(http://bugs.typo3.org/view.php?id=2814)
This commit is contained in:
stronk7
2006-03-09 17:29:58 +00:00
parent 7dc2cdd405
commit e05fc498ea
+6 -1
View File
@@ -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;
}
}