Cast isOnline return value to ensure boolean

This commit is contained in:
Romain Neutron
2013-07-10 11:23:00 +02:00
parent 3f37226226
commit ee18f7e27b

View File

@@ -34,7 +34,7 @@ class MemcacheCache extends DoctrineMemcache implements Cache
*/
public function isOnline()
{
return $this->getMemcache()->getstats();
return (Boolean) $this->getMemcache()->getstats();
}
/**