From 1ae3c6b315ad791ad1ee3d99f2630a6a49326a50 Mon Sep 17 00:00:00 2001 From: Cameron Date: Sat, 4 Feb 2017 11:21:21 -0800 Subject: [PATCH] Warning fix --- e107_handlers/plugin_class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e107_handlers/plugin_class.php b/e107_handlers/plugin_class.php index be8e9c0e3..a0dd13265 100644 --- a/e107_handlers/plugin_class.php +++ b/e107_handlers/plugin_class.php @@ -237,7 +237,7 @@ class e_plugin public function getName($plugdir) { - if(!empty($this->_data[$plugdir]['@attributes']['lan'])) + if(!empty($this->_data[$plugdir]['@attributes']['lan']) && defined($this->_data[$plugdir]['@attributes']['lan'])) { return constant($this->_data[$plugdir]['@attributes']['lan']); }