From 67ab8f5e8b708de56732ea658cdc6ae44753a7b8 Mon Sep 17 00:00:00 2001 From: Marc Fiuczynski Date: Sun, 18 Jan 2009 15:38:36 +0000 Subject: [PATCH] quiet PHP undefined variable use warnings --- PlanetLabConf/ntp.conf.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/PlanetLabConf/ntp.conf.php b/PlanetLabConf/ntp.conf.php index 4676c23..c284fca 100755 --- a/PlanetLabConf/ntp.conf.php +++ b/PlanetLabConf/ntp.conf.php @@ -42,6 +42,10 @@ if (!empty($sites)) { $site_name= $sites[0]['name']; $mylat= $sites[0]['latitude']; $mylong= $sites[0]['longitude']; +} else { + $site_name= "Unknown"; + $mylat= 0; + $mylong= 0; } /* typical NTP settings */ -- 2.43.0