| @@ -33,9 +33,9 @@ | ||
| 33 | 33 | public function add_notification($type, $text) { |
| 34 | 34 | |
| 35 | 35 | $notification_id = (int) round(microtime(true) * 1000) . '-' . bin2hex(random_bytes(3)); |
| 36 | 36 | $notifications = $this->load(); |
| 37 | - | |
| 37 | + | |
| 38 | 38 | $notifications[$notification_id] = [ |
| 39 | 39 | 'type' => $type, |
| 40 | 40 | 'text' => $text, |
| 41 | 41 | 'expires' => time() + 10, |