mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 10:11:38 +09:00
Replace $this->stop() with proper exceptions
This commit is contained in:
parent
5b7ce90a3d
commit
d8a0773b97
26 changed files with 109 additions and 69 deletions
|
|
@ -44,7 +44,7 @@ class pollAdminController extends poll
|
|||
else $poll_srl_list= explode('|@|', $cart);
|
||||
|
||||
$poll_count = count($poll_srl_list);
|
||||
if(!$poll_count) return $this->stop('msg_cart_is_null');
|
||||
if(!$poll_count) throw new Rhymix\Framework\Exception('msg_cart_is_null');
|
||||
// Delete the post
|
||||
for($i=0;$i<$poll_count;$i++)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue