check before reading the configuration.
Barış Metin [Wed, 1 Sep 2010 08:47:27 +0000 (08:47 +0000)]
this fails when myplc installation doesn't have sfa installed.

PlanetLabConf/sfa_config.php

index 851128e..fee3dde 100755 (executable)
@@ -8,7 +8,9 @@
 $config_directory = "/etc/sfa/";
 $default_name = "sfa_component_config";
 $file_name = $config_directory . $default_name;
-readfile($file_name); 
+if (file_exists($filename)) {
+    readfile($file_name); 
+}
 exit();
 
 ?>