mirror of
https://github.com/e107inc/e107.git
synced 2025-08-06 22:57:14 +02:00
PHP Notice removal
This commit is contained in:
@@ -1870,7 +1870,7 @@ class e107
|
||||
* Safe way to call user methods.
|
||||
* @param string|object $class_name
|
||||
* @param string $method_name
|
||||
* @return boolean FALSE
|
||||
* @return array|boolean FALSE
|
||||
*/
|
||||
public static function callMethod($class_name, $method_name, $param='')
|
||||
{
|
||||
|
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@@ -2986,9 +2986,19 @@ class e107plugin
|
||||
// Called to parse the (deprecated) plugin.php file
|
||||
function parse_plugin_php($plugName)
|
||||
{
|
||||
$mes = e107::getMessage();
|
||||
$tp = e107::getParser();
|
||||
|
||||
$eplug_conffile = null;
|
||||
$eplug_table_names = null;
|
||||
$eplug_prefs = null;
|
||||
$eplug_module = null;
|
||||
$eplug_userclass = null;
|
||||
$eplug_status = null;
|
||||
$eplug_latest = null;
|
||||
$eplug_icon = null;
|
||||
$eplug_icon_small = null;
|
||||
|
||||
|
||||
if (include(e_PLUGIN.$plugName.'/plugin.php'))
|
||||
{
|
||||
//$mes->add("Loading ".e_PLUGIN.$plugName.'/plugin.php', E_MESSAGE_DEBUG);
|
||||
|
Reference in New Issue
Block a user