From: edward Date: Thu, 15 Feb 2018 05:04:02 +0000 (+0800) Subject: VerifyAccess.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=bfbc0b7448f5066212e8e0da8d62bc60f2b26f1b VerifyAccess.php --- diff --git a/VerifyAccess.php b/VerifyAccess.php index 55444326..6d4a2e28 100644 --- a/VerifyAccess.php +++ b/VerifyAccess.php @@ -47,15 +47,6 @@ class Pman_Core_VerifyAccess extends Pman } function post() - { - if(!empty($_REQUEST['_to_data'])){ - $this->toData(); - } - - - } - - function toData() { $core_ip_access = DB_DataObject::factory('core_ip_access'); @@ -68,8 +59,14 @@ class Pman_Core_VerifyAccess extends Pman $this->jerr('Invalid URL'); } - $this->jdata($core_ip_access->toArray()); + if(!empty($_REQUEST['_to_data'])){ + $this->jdata($core_ip_access->toArray()); + } + + + } + }