1
0
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:
Cameron
2012-11-29 23:12:20 -08:00
parent db07d72afc
commit 2234f8f62c
4 changed files with 18 additions and 15 deletions

View File

@@ -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']);