Adjust array-count guards after validation feedback
Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/88949fe0-8891-483a-b5c5-952bc209748d Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
This commit is contained in:
parent
54e7f07aa0
commit
4d1b87b697
3 changed files with 3 additions and 3 deletions
|
|
@ -358,7 +358,7 @@ function exec_ogp_module() {
|
|||
foreach($groups as $group)
|
||||
$group_names[$group['group_id']] = $group['group_name'];
|
||||
|
||||
if (isset($result) and is_array($result) and $result > 0)
|
||||
if (isset($result) and is_array($result) and (is_array($result) ? count($result) : 0) > 0)
|
||||
{
|
||||
foreach($result as $row)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue