Index: trunk/extensions/Collection/collection/popup.js |
— | — | @@ -77,7 +77,9 @@ |
78 | 78 | } |
79 | 79 | } |
80 | 80 | coll = JSON.parse(xhr.responseText); |
81 | | - add_articles(coll.collection.items); |
| 81 | + if (typeof coll.collection.items != 'undefined' ) { |
| 82 | + add_articles(coll.collection.items); |
| 83 | + } |
82 | 84 | if (articles.length > 0) { |
83 | 85 | startCollectionPopups(); |
84 | 86 | } else { |