mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
www/nginx: fix count on iterator
CC: @fabianfrz
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
PLUGIN_NAME= nginx
|
||||
PLUGIN_VERSION= 1.11
|
||||
PLUGIN_REVISION= 1
|
||||
PLUGIN_COMMENT= Nginx HTTP server and reverse proxy
|
||||
PLUGIN_DEPENDS= nginx
|
||||
PLUGIN_MAINTAINER= franz.fabian.94@gmail.com
|
||||
|
||||
@@ -63,7 +63,8 @@ class IndexController extends \OPNsense\Base\IndexController
|
||||
$this->view->tls_fingerprint = $this->getForm("tls_fingerprint");
|
||||
$nginx = new Nginx();
|
||||
$this->view->show_naxsi_download_button =
|
||||
count($nginx->custom_policy->iterateItems()) == 0 && count($nginx->naxsi_rule->iterateItems()) == 0;
|
||||
count(iterator_to_array($nginx->custom_policy->iterateItems())) == 0 &&
|
||||
count(iterator_to_array($nginx->naxsi_rule->iterateItems())) == 0;
|
||||
$this->view->pick('OPNsense/Nginx/index');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user