Skip to content

Commit

Permalink
Update function.php
Browse files Browse the repository at this point in the history
  • Loading branch information
synergixe authored Feb 7, 2018
1 parent 3b90a6b commit a3af0d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/function.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function normalize_laravel_notifications ($row){
$item = json_decode($row['data'], TRUE);
$item['nid'] = $row['id'];
$item['timing'] = $row['created_at'];
$item['is_read'] = ($row['read_at'] !== NULL);
$item['is_read'] = !(is_null($row['read_at']));

return $item;
}
Expand Down

0 comments on commit a3af0d2

Please sign in to comment.