functions.inc.php (Bugs)
Hello
Fixed a bug in "/forum/includes/functions.inc.php"
Code snippets from: "/forum/includes/functions.inc.php" line 2143 to 2153 on error line 2147
change to
function my_strlen($string, $encoding='utf-8') { if(function_exists('mb_strlen')) { return @mb_strlen($string, $encoding); } else { return strlen($string); } }
if not a warning(s) is displayet on top of the forum "Not good"
The function gets a string and the encoding. In wich using scenario there could popup a warning? Any examples?Tschö, Auge
Hello Auge
I get the warning when I will see what is posted in the forum (Warning: mb_substr () [function.mb-substr]: Unknown encoding "" in /****/********/ public_html / forum / includes / functions.inc.php on line 2186)
When I want to see user settings (Warning: mb_substr () [function.mb-substr]: Unknown encoding "" in /****/********/ public_html / forum / includes / functions.inc. php on line 2186
Warning: mb_strlen () [function.mb-strlen]: Unknown encoding "" in /****/********/ public_html / forum / includes / functions.inc.php on line 2147
Warning: mb_substr () [function.mb-substr]: Unknown encoding "" in /****/********/ public_html / forum / includes / functions.inc.php on line 2186)
But I put an @ in front as shown in previous postings
It works for me.