diff --git a/customindex/views/default/customindex/content.php b/customindex/views/default/customindex/content.php index 4e6918b7214ba8d48ad3035ab8d06c1f5e7f8f67..c736ef9ebf4574b639e6f1c91bbaffc3195ec9ef 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