From e6899c507d8bbaac305fbc6da0c98d47441f43df Mon Sep 17 00:00:00 2001
From: Eric Rasmussen <erasmussen2@unl.edu>
Date: Mon, 24 Aug 2009 16:56:54 +0000
Subject: [PATCH] update to filter out the "did not attend unl"

---
 customindex/views/default/customindex/content.php | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/customindex/views/default/customindex/content.php b/customindex/views/default/customindex/content.php
index 4e6918b7..c736ef9e 100644
--- a/customindex/views/default/customindex/content.php
+++ b/customindex/views/default/customindex/content.php
@@ -164,7 +164,7 @@
 		                    else
 		                    	echo "'',";
 	                    	echo "'" . $user->name . "',";
-	                    	if($user->profile_attended_from)
+	                    	if($user->profile_attended_from != "Did Not Attend UNL")
 		                    	echo "'Attended UNL: " . $user->profile_attended_from . "-" . $user->profile_attended_to . "'";
 		                    else
 		                    	echo "''";
@@ -322,7 +322,10 @@
 				mysql_select_db($CONFIG->dbname) or die(mysql_error());
 				
 				//get the most recent wire posts
-				$result = mysql_query("SELECT * from elggentities where type='object' and subtype=4 and site_guid = 1 order by time_created desc limit 0, 3") or die(mysql_error());
+				if (isloggedin())
+					$result = mysql_query("SELECT * from elggentities where type='object' and subtype=4 and site_guid = 1 order by time_created desc limit 0, 5") or die(mysql_error());
+				else
+					$result = mysql_query("SELECT * from elggentities where type='object' and subtype=4 and site_guid = 1 order by time_created desc limit 0, 3") or die(mysql_error());
 				while($row = mysql_fetch_array( $result ))
 				{
 					//get the actual post
-- 
GitLab