Skip to content

Commit

Permalink
Merge pull request Seldaek#1 from andrioli/notify-parameter-fix
Browse files Browse the repository at this point in the history
Using the correct value for parameter 'notify'
  • Loading branch information
Eric Salter committed Jun 4, 2015
2 parents 6e8c4a1 + 201bce8 commit e904f91
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Monolog/Handler/HipChatHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,9 @@ protected function generateDataStream($record)
private function buildContent($record)
{
$dataArray = array(
'notify' => $this->notify,
'notify' => $this->version == self::API_V1 ?
($this->notify ? 1 : 0) :
($this->notify ? 'true' : 'false'),
'message' => $record['formatted'],
'message_format' => $this->format,
'color' => $this->getAlertColor($record['level']),
Expand Down

0 comments on commit e904f91

Please sign in to comment.