Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
zoic21 authored Jul 15, 2024
1 parent df7e51a commit 8157ab6
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions core/class/event.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class event {

public static function add($_event, $_options = array(),$_clean = true) {
if(is_array($_options)){
$_options = json_encode($_options);
$_options = json_encode($_options, JSON_UNESCAPED_UNICODE);
}
$value = array(
'datetime' => getmicrotime(),
Expand Down Expand Up @@ -93,16 +93,13 @@ public static function cleanEvent() {
continue;
} else {
$find[$id]->remove();
unset($find[$id]);
}
}
$find[$id] = $event;
}
}

public static function orderEvent($a, $b) {
return ($a['datetime'] - $b['datetime']);
}

public static function changes($_datetime, $_longPolling = null, $_filter = null) {
$return = self::filterEvent(self::changesSince($_datetime), $_filter);
if ($_longPolling === null || count($return) > 0) {
Expand Down

0 comments on commit 8157ab6

Please sign in to comment.