[TASK] I don't know what changed, but it might be important.

This commit is contained in:
Jan Philipp Timme 2011-01-22 20:28:10 +00:00
parent e424ea2cbe
commit 7e7ac368b2
1 changed files with 3 additions and 1 deletions

View File

@ -185,7 +185,9 @@ class Client_ClientManager {
$className = "Client_" . $protocol . "Client";
//look for the class
if(class_exists($className)) {
return new $className();
$client = new $className();
if(!$client instanceof Client_AbstractClient) throw new Exception_GeneralException("Class '" . $className . "' does not implement the AbstractClient-API!", 1294837055);
return $client;
} else {
throw new Exception_GeneralException("Registered class name '" . $className . "' does not exist for protocol: '" . $protocol . "'!", 1290271773);
}