Фикс блокировки, если дата разблокировки не указана

This commit is contained in:
n1rwana 2023-08-26 00:15:13 +03:00
parent 5353ef3543
commit 1db5880e65
No known key found for this signature in database
GPG key ID: 184A60085ABF17D8

View file

@ -363,7 +363,7 @@ final class AdminPresenter extends OpenVKPresenter
if (str_contains($this->queryParam("reason"), "*"))
exit(json_encode([ "error" => "Incorrect reason" ]));
$unban_time = strtotime($this->queryParam("date")) ?: NULL;
$unban_time = strtotime($this->queryParam("date")) ?: "permanent";
$user = $this->users->get($id);
if(!$user)