intrusion detection: try to fix $data['row'] handling #3474

Is this a browser-specific bug?
This commit is contained in:
Franco Fichtner 2019-06-23 20:48:07 +02:00
parent c0fe5ceff4
commit 67b404f552

View File

@ -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;