summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local')
-rw-r--r--usr/local/www/services_ntpd_pps.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/usr/local/www/services_ntpd_pps.php b/usr/local/www/services_ntpd_pps.php
index ed6a24e..1eb3141 100644
--- a/usr/local/www/services_ntpd_pps.php
+++ b/usr/local/www/services_ntpd_pps.php
@@ -36,7 +36,12 @@
##|*MATCH=services_ntpd_pps.php*
##|-PRIV
-require("guiconfig.inc");
+require_once("guiconfig.inc");
+
+if (!is_array($config['ntpd']))
+ $config['ntpd'] = array();
+if (!is_array($config['ntpd']['pps']))
+ $config['ntpd']['pps'] = array();
if ($_POST) {
OpenPOWER on IntegriCloud