quiet PHP undefined variable use warnings
authorMarc Fiuczynski <mef@cs.princeton.edu>
Sun, 18 Jan 2009 15:38:36 +0000 (15:38 +0000)
committerMarc Fiuczynski <mef@cs.princeton.edu>
Sun, 18 Jan 2009 15:38:36 +0000 (15:38 +0000)
PlanetLabConf/ntp.conf.php

index 4676c23..c284fca 100755 (executable)
@@ -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 */