forked from leftypol/leftypol
minor consistency cleanup
This commit is contained in:
parent
eb146d9201
commit
913010cff5
11 changed files with 35 additions and 323 deletions
|
@ -35,7 +35,7 @@ function event_handler($event, $callback) {
|
|||
global $events;
|
||||
|
||||
if (!isset($events[$event]))
|
||||
$events[$event] = Array();
|
||||
$events[$event] = array();
|
||||
|
||||
$events[$event][] = $callback;
|
||||
}
|
||||
|
@ -43,6 +43,6 @@ function event_handler($event, $callback) {
|
|||
function reset_events() {
|
||||
global $events;
|
||||
|
||||
$events = Array();
|
||||
$events = array();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue