Skip to content

Commit b8b1b54

Browse files
author
Marius Burkard
committed
- fixed php warning from installer
1 parent f2124f2 commit b8b1b54

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

install/lib/classes/ispconfig_addon_installer.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public function __construct() {
1414
$this->addon_ident = preg_replace('/_addon_installer$/', '', get_called_class());
1515
}
1616

17-
public function onRaisedInstallerEvent($event_name, $data) {
17+
public function onRaisedInstallerEvent($event_name, $data = false) {
1818

1919
}
2020
}

install/lib/installer_base.lib.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2864,7 +2864,7 @@ private function loadAddonClasses($path) {
28642864
}
28652865
}
28662866

2867-
public function raiseEvent($event_name) {
2867+
public function raiseEvent($event_name, $data = false) {
28682868
global $conf;
28692869

28702870
if(is_null($this->addon_classes)) {
@@ -2879,7 +2879,7 @@ public function raiseEvent($event_name) {
28792879
reset($this->addon_classes);
28802880
foreach($this->addon_classes as $cl) {
28812881
if(method_exists($cl, $call_method)) {
2882-
call_user_func(array($cl, $call_method), $event_name);
2882+
call_user_func(array($cl, $call_method), $event_name, $data);
28832883
}
28842884
}
28852885
}

server/lib/classes/ispconfig_addon_installer_base.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ public function onAfterUpdate() { }
194194

195195

196196

197-
public function onRaisedInstallerEvent($event_name, $data) {
197+
public function onRaisedInstallerEvent($event_name, $data = false) {
198198

199199
}
200200
}

0 commit comments

Comments
 (0)