diff --git a/js/notifications.js b/js/notifications.js index c0fbb96d9..543f28623 100644 --- a/js/notifications.js +++ b/js/notifications.js @@ -50,7 +50,7 @@ function getPush(refresh) $.post("ajax.php",{"getNotifications" : "1"}, function(data) { if (data) { - json = jQuery.parseJSON(data); + var json = jQuery.parseJSON(data); // Add orders notifications to the list html = "";