Commit c6a4e90e authored by Gasol Wu's avatar Gasol Wu

instead of function_exists, use class_exists

parent 8be5a1ac
......@@ -55,7 +55,7 @@ class Solarium_Client_Adapter_PeclHttp extends Solarium_Client_Adapter
protected function _init()
{
// @codeCoverageIgnoreStart
if (!function_exists('http_get')) {
if (!class_exists('HttpRequest', false)) {
throw new Solarium_Exception('Pecl_http is not available, install it to use the PeclHttp adapter');
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment