From d7d849a57fb7d6519f81d471ca36e11ba189e92b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bar=C4=B1=C5=9F=20Metin?= Date: Wed, 1 Sep 2010 08:47:27 +0000 Subject: [PATCH] check before reading the configuration. this fails when myplc installation doesn't have sfa installed. --- PlanetLabConf/sfa_config.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/PlanetLabConf/sfa_config.php b/PlanetLabConf/sfa_config.php index 851128e..fee3dde 100755 --- a/PlanetLabConf/sfa_config.php +++ b/PlanetLabConf/sfa_config.php @@ -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(); ?> -- 2.43.0