summaryrefslogtreecommitdiffstats
path: root/usr/local/www/xmlrpc.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2014-05-11 16:34:30 -0700
committerPhil Davis <phil.davis@inf.org>2014-05-11 16:34:30 -0700
commitbbceec685f4b2a8e9f5caaadbd4c0c562f26eb8d (patch)
treeb0dd2e899a864a29030b0639e83bd7e64f8c922f /usr/local/www/xmlrpc.php
parent2f650f35e65b54d9596a15c2daedc109cd2a8a97 (diff)
downloadpfsense-bbceec685f4b2a8e9f5caaadbd4c0c562f26eb8d.zip
pfsense-bbceec685f4b2a8e9f5caaadbd4c0c562f26eb8d.tar.gz
Use function_exists test
Diffstat (limited to 'usr/local/www/xmlrpc.php')
-rwxr-xr-xusr/local/www/xmlrpc.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/local/www/xmlrpc.php b/usr/local/www/xmlrpc.php
index 8445d8f..5c6fdba 100755
--- a/usr/local/www/xmlrpc.php
+++ b/usr/local/www/xmlrpc.php
@@ -484,7 +484,8 @@ function get_notices_xmlrpc($raw_params) {
xmlrpc_authfail();
return $xmlrpc_g['return']['authfail'];
}
- require_once("notices.inc");
+ if(!function_exists("get_notices"))
+ require("notices.inc");
if(!$params) {
$toreturn = get_notices();
} else {
OpenPOWER on IntegriCloud