1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-09 06:36:46 +02:00

Check 'context' before 'extra'

First check 'context' array, before 'extra' array is checked
This commit is contained in:
Rvanlaak
2014-04-10 16:54:05 +02:00
parent 82c040ec12
commit 6c35b82256

View File

@@ -101,7 +101,9 @@ class PushoverHandler extends SocketHandler
$dataArray['priority'] = 1;
}
if (isset($record['extra']['sound']) && in_array($record['extra']['sound'], $this->sounds)) {
if (isset($record['context']['sound']) && in_array($record['context']['sound'], $this->sounds)) {
$dataArray['sound'] = $record['context']['sound'];
} elseif (isset($record['extra']['sound']) && in_array($record['extra']['sound'], $this->sounds)) {
$dataArray['sound'] = $record['extra']['sound'];
}