diff --git a/filters.inc.php b/filters.inc.php index ce645bc..64c59cd 100644 --- a/filters.inc.php +++ b/filters.inc.php @@ -92,10 +92,6 @@ function flt_class($val, $name, $struct, $args) if($conf_class != $args[0] && !is_subclass_of($conf_class, $args[0])) throw new Exception($val.". Config class is \"".$conf_class."\". Must be \"".$args[0]."\" or it's child"); - else - return $val; - - throw new Exception($val.". Config class is not found in '$conf_path'"); } return $val;