mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-10 07:06:40 +02:00
Check 'context' before 'extra'
First check 'context' array, before 'extra' array is checked
This commit is contained in:
@@ -101,7 +101,9 @@ class PushoverHandler extends SocketHandler
|
|||||||
$dataArray['priority'] = 1;
|
$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'];
|
$dataArray['sound'] = $record['extra']['sound'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user