*** empty log message ***

This commit is contained in:
andrey
2001-08-01 16:28:28 +00:00
parent 78c7cf29b5
commit 4e03665cc1
2 changed files with 10 additions and 10 deletions

View File

@@ -88,13 +88,13 @@ class Config_File extends PEAR {
*/ */
function set_path($config_path) function set_path($config_path)
{ {
if (!is_string($config_path) || if (!empty($config_path)) {
(!is_dir($config_path))) { if (!is_string($config_path) || !file_exists($config_path) || !is_dir($config_path)) {
return new Config_File_Error("Bad config file path '$config_path'"); return new Config_File_Error("Bad config file path '$config_path'");
} }
if ($config_path != "")
$this->_config_path = $config_path . $this->_separator; $this->_config_path = $config_path . $this->_separator;
}
} }

View File

@@ -88,13 +88,13 @@ class Config_File extends PEAR {
*/ */
function set_path($config_path) function set_path($config_path)
{ {
if (!is_string($config_path) || if (!empty($config_path)) {
(!is_dir($config_path))) { if (!is_string($config_path) || !file_exists($config_path) || !is_dir($config_path)) {
return new Config_File_Error("Bad config file path '$config_path'"); return new Config_File_Error("Bad config file path '$config_path'");
} }
if ($config_path != "")
$this->_config_path = $config_path . $this->_separator; $this->_config_path = $config_path . $this->_separator;
}
} }