Use correct request parameter type for poke privacy
This commit is contained in:
parent
043e2224b0
commit
2ef5bf1e21
|
@ -51,7 +51,7 @@ class Poke extends BaseModule
|
|||
|
||||
$a = DI::app();
|
||||
|
||||
$private = (!empty($_GET['private']) ? intval($_GET['private']) : Model\Item::PUBLIC);
|
||||
$private = !empty($_POST['private']) ? Model\Item::PRIVATE : Model\Item::PUBLIC;
|
||||
|
||||
$allow_cid = ($private ? '<' . $contact['id']. '>' : $a->user['allow_cid']);
|
||||
$allow_gid = ($private ? '' : $a->user['allow_gid']);
|
||||
|
|
Loading…
Reference in New Issue
Block a user