Skip to content

Commit

Permalink
Ensure the message passed to the parser is a string to avoid errors i…
Browse files Browse the repository at this point in the history
…n case of NULL/FALSE - fixes #2924
  • Loading branch information
emanuele45 committed Apr 30, 2017
1 parent 05b9d66 commit 814741d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sources/subs/BBC/BBCParser.php
Expand Up @@ -120,7 +120,7 @@ public function parse($message)
{
call_integration_hook('integrate_pre_bbc_parser', array(&$message, $this->bbc));

$this->message = $message;
$this->message = (string) $message;

// Don't waste cycles
if ($this->message === '')
Expand Down

0 comments on commit 814741d

Please sign in to comment.