summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_ntpd_pps.php
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2014-02-19 15:58:05 +0000
committerErmal <eri@pfsense.org>2014-02-19 15:58:05 +0000
commitb3974c79e5b30c62762110ccdb3a8bf0c0099d7b (patch)
treefa9d74cebf3244788f102ba16ccbc86ff269790b /usr/local/www/services_ntpd_pps.php
parent8988ab9581fb0ccc73df0037581e820b2c429a6f (diff)
downloadpfsense-b3974c79e5b30c62762110ccdb3a8bf0c0099d7b.zip
pfsense-b3974c79e5b30c62762110ccdb3a8bf0c0099d7b.tar.gz
Make this usable
Diffstat (limited to 'usr/local/www/services_ntpd_pps.php')
-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