1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-17 20:01:47 +02:00

PHP Notice removal

This commit is contained in:
Cameron
2015-03-07 16:31:13 -08:00
parent 1e5ab81afe
commit 85f30c0292
3 changed files with 18 additions and 5 deletions

View File

@@ -3165,7 +3165,7 @@ class e_parser
*/
public function cleanHtml($html='', $checkPref = true)
{
if(empty($html)){ return; }
if(empty($html)){ return ''; }
// $html = mb_convert_encoding($html, 'UTF-8');
@@ -3269,9 +3269,12 @@ class e_parser
}
// required - removing attributes in a loop breaks the loop
foreach ($removeAttributes as $name)
if(!empty($removeAttributes))
{
$node->removeAttribute($name);
foreach ($removeAttributes as $name)
{
$node->removeAttribute($name);
}
}