mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-02 20:19:27 +01:00
Make sure rawData is an array before using it
This commit is contained in:
parent
e5674bbc5d
commit
16e3e053d4
@ -656,6 +656,7 @@
|
|||||||
notifications.prototype.append = function(_rawData, _browser_notify, _total) {
|
notifications.prototype.append = function(_rawData, _browser_notify, _total) {
|
||||||
|
|
||||||
var hasUnseen = [];
|
var hasUnseen = [];
|
||||||
|
_rawData = _rawData || [];
|
||||||
// Dont process the data if they're the same as it could get very expensive to
|
// Dont process the data if they're the same as it could get very expensive to
|
||||||
// proccess html their content.
|
// proccess html their content.
|
||||||
if (_currentRawData.length>0 && _currentRawData.length == _rawData.length) return;
|
if (_currentRawData.length>0 && _currentRawData.length == _rawData.length) return;
|
||||||
|
Loading…
Reference in New Issue
Block a user