Apply minor change.

This commit is contained in:
Daniele Alessandri
2011-03-18 15:13:52 +01:00
parent 15af329aa3
commit 94d0805cf6
+1 -2
View File
@@ -32,8 +32,7 @@ class Client {
return new ClientOptions(array('profile' => $options));
}
if (is_string($options)) {
$profile = ServerProfile::get($options);
return new ClientOptions(array('profile' => $profile));
return new ClientOptions(array('profile' => ServerProfile::get($options)));
}
throw new \InvalidArgumentException("Invalid type for client options");
}