1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-02-24 06:52:34 +01:00

Update PushoverHandler.php

This commit is contained in:
Richard van Laak 2014-12-08 13:51:44 +01:00
parent 15fe95e194
commit 1ad2cc0d84

View File

@ -122,7 +122,7 @@ class PushoverHandler extends SocketHandler
// Least important info should be merged with subsequent info
$dataArray = array_merge($extra, $context, $dataArray);
// Get rid of sound in case it is not in the options
// Only pass sounds that are supported by the API
if (isset($dataArray['sound']) && !in_array($dataArray['sound'], $this->sounds)) {
unset($dataArray['sound']);
}