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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user