diff --git a/interface/lib/classes/plugin.inc.php b/interface/lib/classes/plugin.inc.php
index 3c9a446ae275e891a834f4062ef950f0d15ab155..8a8ac20012976866518a72b4f6bb8685c5e142e5 100644
--- a/interface/lib/classes/plugin.inc.php
+++ b/interface/lib/classes/plugin.inc.php
@@ -121,7 +121,7 @@ class plugin {
 
 		if(is_array($sub_events)) {
 			if(count($sub_events) == 3) {
-				$mp_event = $sub_events[2];
+				$tmp_event = $sub_events[2];
 				if($this->debug) $app->log("Called Event '$tmp_event'", LOGLEVEL_DEBUG);
 				$tmpresult = $this->callPluginEvent($tmp_event, $data, $return_data);
 				if($return_data == true && $tmpresult) $result .= $tmpresult;