mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Fix unnecessary query when there are no polls
This commit is contained in:
parent
cd58305fc1
commit
3430e21be4
3 changed files with 16 additions and 3 deletions
|
|
@ -52,7 +52,7 @@ class pollAdminView extends poll
|
|||
$output = $oPollAdminModel->getPollListWithMember($args);
|
||||
|
||||
// check poll type. document or comment
|
||||
if(is_array($output->data))
|
||||
if(is_array($output->data) && count($output->data))
|
||||
{
|
||||
$uploadTargetSrlList = array();
|
||||
foreach($output->data as $value)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue