mirror of
https://github.com/e107inc/e107.git
synced 2025-08-12 09:34:54 +02:00
Issue #3 Should address some of the Notices/Warnings.
This commit is contained in:
@@ -187,7 +187,7 @@ class e107plugin
|
||||
continue;
|
||||
}
|
||||
|
||||
if(in_array($path,$this->disAllowed))
|
||||
if(in_array($plugin_path, $this->disAllowed))
|
||||
{
|
||||
$mes->addWarning("Folder error: <i>{$p['path']}</i> is not permitted as an acceptable folder name.");
|
||||
continue;
|
||||
@@ -2467,7 +2467,7 @@ class e107plugin
|
||||
$this->plug_vars['category'] = (isset($this->plug_vars['category'])) ? $this->manage_category($this->plug_vars['category']) : "misc";
|
||||
$this->plug_vars['folder'] = $plugName; // remove the need for <folder> tag in plugin.xml.
|
||||
|
||||
if(!is_array($this->plug_vars['description']))
|
||||
if(varset($this->plug_vars['description']) && !is_array($this->plug_vars['description']))
|
||||
{
|
||||
$diz = $this->plug_vars['description'];
|
||||
unset($this->plug_vars['description']);
|
||||
|
Reference in New Issue
Block a user