From b3974c79e5b30c62762110ccdb3a8bf0c0099d7b Mon Sep 17 00:00:00 2001 From: Ermal Date: Wed, 19 Feb 2014 15:58:05 +0000 Subject: Make this usable --- usr/local/www/services_ntpd_pps.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'usr/local/www/services_ntpd_pps.php') 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) { -- cgit v1.1