mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-18 10:35:27 +00:00
intrusion detection: try to fix $data['row'] handling #3474
Is this a browser-specific bug?
This commit is contained in:
parent
c0fe5ceff4
commit
67b404f552
@ -134,7 +134,7 @@ class SettingsController extends ApiMutableModelControllerBase
|
||||
$row['action'] = $this->getModel()->getRuleAction($row['sid'], $row['action'], true);
|
||||
}
|
||||
|
||||
$result['rowCount'] = empty($result['rows']) ? 0 : count($result['rows']);
|
||||
$result['rowCount'] = empty($result['rows']) || !is_array($result['rows']) ? 0 : count($result['rows']);
|
||||
$result['total'] = $data['total_rows'];
|
||||
$result['parameters'] = $data['parameters'];
|
||||
$result['current'] = (int)$currentPage;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user