private function introTotal($all = false) {
$sql_extra = "";
- if($all === false)
+ if(!$all)
$sql_extra = " AND `ignore` = 0 ";
$r = q("SELECT COUNT(*) AS `total` FROM `intro`
$notifs = array();
$sql_extra = "";
- if($all === false)
+ if(!$all)
$sql_extra = " AND `ignore` = 0 ";
/// @todo Fetch contact details by "get_contact_details_by_url" instead of queries to contact, fcontact and gcontact
// The link to switch between ignored and normal connection requests
$notif_show_lnk = array(
- 'href' => ($all === false ? 'notifications/intros/all' : 'notifications/intros' ),
- 'text' => ($all === false ? t('Show Ignored Requests') : t('Hide Ignored Requests'))
+ 'href' => (!$all ? 'notifications/intros/all' : 'notifications/intros' ),
+ 'text' => (!$all ? t('Show Ignored Requests') : t('Hide Ignored Requests'))
);
// Loop through all introduction notifications.This creates an array with the output html for each