X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=VerifyAccess.php;fp=VerifyAccess.php;h=51312240344ac7bd03ad8f080c5f36a7c14ea421;hb=615d2797b85f319cf4183651852acba447bc4222;hp=f6eba05a30fe330a61185105195cbbcc935312c3;hpb=17a69f7cb587eb18ce4a08e2ac232193cd221b48;p=Pman.Core diff --git a/VerifyAccess.php b/VerifyAccess.php index f6eba05a..51312240 100644 --- a/VerifyAccess.php +++ b/VerifyAccess.php @@ -65,7 +65,9 @@ class Pman_Core_VerifyAccess extends Pman $o = clone($core_ip_access); - $core_ip_access->status = empty($_REQUEST['status']) ? 0 : $_REQUEST['status']; + $core_ip_access->setFrom(array( + 'status' => empty($_REQUEST['status']) ? 0 : $_REQUEST['status'] + )); if($core_ip_access->status == -2){ @@ -77,6 +79,8 @@ class Pman_Core_VerifyAccess extends Pman $core_ip_access->update($o); + $this->jok('OK'); + }