Commit 9af5dcf6 authored by Nicolò Caruso's avatar Nicolò Caruso
Browse files

Fix warnings

parent 05ae2fd1
......@@ -642,9 +642,9 @@ function _bat_api_merge_non_blocking_events($events) {
$prev_id = FALSE;
foreach ($events as $id => $event) {
if ($prev_id !== FALSE && $event['rendering'] == 'background' && !$event['blocking']) {
if ($prev_id !== FALSE && isset($event['rendering']) && $event['rendering'] == 'background' && !$event['blocking']) {
$last_event = $events[$prev_id];
if ($last_event['rendering'] == 'background' && !$last_event['blocking']) {
if (isset($last_event['rendering']) && $last_event['rendering'] == 'background' && !$last_event['blocking']) {
if ($last_event['resourceId'] == $event['resourceId'] &&
$last_event['title'] == $event['title'] &&
$last_event['color'] == $event['color']) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment