From: edward Date: Thu, 15 Feb 2018 05:11:42 +0000 (+0800) Subject: VerifyAccess.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=615d2797b85f319cf4183651852acba447bc4222 VerifyAccess.php --- 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'); + }