mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 22:03:49 -07:00
fix(announcer): Null event
exception (#1784)
This commit is contained in:
parent
b51b226bde
commit
b06e327cbb
1 changed files with 1 additions and 1 deletions
|
@ -99,7 +99,7 @@ if (!isset($info_hash)) {
|
||||||
*
|
*
|
||||||
* @see https://github.com/HDInnovations/UNIT3D-Community-Edition/blob/c64275f0b5dcb3c4c845d5204871adfe24f359d6/app/Http/Controllers/AnnounceController.php#L275
|
* @see https://github.com/HDInnovations/UNIT3D-Community-Edition/blob/c64275f0b5dcb3c4c845d5204871adfe24f359d6/app/Http/Controllers/AnnounceController.php#L275
|
||||||
*/
|
*/
|
||||||
$event = strtolower($event);
|
$event = strtolower((string)$event);
|
||||||
if (!in_array($event, ['started', 'completed', 'stopped', 'paused', ''])) {
|
if (!in_array($event, ['started', 'completed', 'stopped', 'paused', ''])) {
|
||||||
msg_die('Invalid event: ' . $event);
|
msg_die('Invalid event: ' . $event);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue