diff options
author | Phil Davis <phil.davis@inf.org> | 2014-05-09 16:57:40 -0700 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2014-05-09 16:57:40 -0700 |
commit | 2f650f35e65b54d9596a15c2daedc109cd2a8a97 (patch) | |
tree | 883d21f3f197b3fdacf1857552d428ad1cd1497a /etc/inc | |
parent | 755387769271ac9c7abab722e643c57d9dff117d (diff) | |
download | pfsense-2f650f35e65b54d9596a15c2daedc109cd2a8a97.zip pfsense-2f650f35e65b54d9596a15c2daedc109cd2a8a97.tar.gz |
Use function_exists test
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/zeromq.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/zeromq.inc b/etc/inc/zeromq.inc index a90ff66..db40ce9 100644 --- a/etc/inc/zeromq.inc +++ b/etc/inc/zeromq.inc @@ -300,7 +300,8 @@ function get_notices_zeromq($raw_params) { $params = $raw_params; if(zeromq_auth($raw_params) == false) return ZEROMQ_AUTH_FAIL; - require_once("notices.inc"); + if(!function_exists("get_notices")) + require("notices.inc"); if(!$params) { $toreturn = get_notices(); } else { |