Skip to content

Commit

Permalink
Update lib/Elastica/Log.php
Browse files Browse the repository at this point in the history
  • Loading branch information
scragg0x committed Feb 15, 2012
1 parent d862769 commit e2c2024
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Elastica/Log.php
Expand Up @@ -33,7 +33,9 @@ public function __construct(Elastica_Client $client) {
* @param string|Elastica_Request $message
*/
public function log($message) {
if (!$this->_log) return;
if (!$this->_log) {
return;
}

if ($message instanceof Elastica_Request) {
$message = $this->_convertRequest($message);
Expand Down

0 comments on commit e2c2024

Please sign in to comment.