From 0b854969a359a00cec0c009e25cc0e830cb4d08c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20=C3=85kre=20Solberg?= <andreas.solberg@uninett.no>
Date: Fri, 28 Oct 2011 07:52:41 +0000
Subject: [PATCH] Skipping entries without title

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2960 44740490-163a-0410-bde0-09ae8108e29a
---
 modules/discojuice/www/discojuice/discojuice.control.js | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/modules/discojuice/www/discojuice/discojuice.control.js b/modules/discojuice/www/discojuice/discojuice.control.js
index 12f585fd7..699453a1c 100644
--- a/modules/discojuice/www/discojuice/discojuice.control.js
+++ b/modules/discojuice/www/discojuice/discojuice.control.js
@@ -475,6 +475,11 @@ DiscoJuice.Control = {
 			current = this.data[i];
 			if (!current.weight) current.weight = 0;
 			
+			if (!current.title) {
+				console.log('No title for this entry [' + current.entityID + (current.relID) + '] skipping.');
+				continue;
+			}
+			
 			if (term) {
 				search = this.parent.Utils.searchMatch(current,term);
 //				if (search === false && current.weight > -50) continue;
-- 
GitLab