mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Update member and module module to throw exceptions
This commit is contained in:
parent
be1ce69073
commit
c4a4528e1b
7 changed files with 180 additions and 158 deletions
|
|
@ -165,7 +165,7 @@ class moduleAdminView extends module
|
|||
$module_srls = Context::get('module_srls');
|
||||
|
||||
$modules = explode(',',$module_srls);
|
||||
if(!count($modules)) if(!$module_srls) return $this->setError('msg_invalid_request');
|
||||
if(!count($modules)) if(!$module_srls) throw new Rhymix\Framework\Exceptions\InvalidRequest;
|
||||
|
||||
$oModuleModel = getModel('module');
|
||||
$columnList = array('module_srl', 'module');
|
||||
|
|
@ -201,7 +201,7 @@ class moduleAdminView extends module
|
|||
$module_srls = Context::get('module_srls');
|
||||
|
||||
$modules = explode(',',$module_srls);
|
||||
if(!count($modules)) if(!$module_srls) return $this->setError('msg_invalid_request');
|
||||
if(!count($modules)) if(!$module_srls) throw new Rhymix\Framework\Exceptions\InvalidRequest;
|
||||
// pre-define variables because you can get contents from other module (call by reference)
|
||||
$content = '';
|
||||
// Call a trigger for additional settings
|
||||
|
|
@ -224,7 +224,7 @@ class moduleAdminView extends module
|
|||
$module_srls = Context::get('module_srls');
|
||||
|
||||
$modules = explode(',',$module_srls);
|
||||
if(!count($modules)) if(!$module_srls) return $this->setError('msg_invalid_request');
|
||||
if(!count($modules)) if(!$module_srls) throw new Rhymix\Framework\Exceptions\InvalidRequest;
|
||||
|
||||
$oModuleModel = getModel('module');
|
||||
$columnList = array('module_srl', 'module', 'site_srl');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue