Fix errors on NIDS export when whitelist is empty

pull/4893/head
Richard van den Berg 2019-07-17 12:46:43 +02:00
parent 2f43f28184
commit 9da8ed86c5
1 changed files with 1 additions and 1 deletions

View File

@ -647,7 +647,7 @@ class NidsExport
public function checkWhitelist($value)
{
if ($this->checkWhitelist) {
if ($this->checkWhitelist && is_array($this->whitelist)) {
foreach ($this->whitelist as $wlitem) {
if (preg_match($wlitem, $value)) {
return true;