notifications - correct boolean variable checking
This commit is contained in:
parent
de02154a1b
commit
0532dc6a61
2 changed files with 4 additions and 4 deletions
|
@ -662,7 +662,7 @@ class NotificationsManager {
|
||||||
private function introTotal($all = false) {
|
private function introTotal($all = false) {
|
||||||
$sql_extra = "";
|
$sql_extra = "";
|
||||||
|
|
||||||
if($all === false)
|
if(!$all)
|
||||||
$sql_extra = " AND `ignore` = 0 ";
|
$sql_extra = " AND `ignore` = 0 ";
|
||||||
|
|
||||||
$r = q("SELECT COUNT(*) AS `total` FROM `intro`
|
$r = q("SELECT COUNT(*) AS `total` FROM `intro`
|
||||||
|
@ -696,7 +696,7 @@ class NotificationsManager {
|
||||||
$notifs = array();
|
$notifs = array();
|
||||||
$sql_extra = "";
|
$sql_extra = "";
|
||||||
|
|
||||||
if($all === false)
|
if(!$all)
|
||||||
$sql_extra = " AND `ignore` = 0 ";
|
$sql_extra = " AND `ignore` = 0 ";
|
||||||
|
|
||||||
/// @todo Fetch contact details by "get_contact_details_by_url" instead of queries to contact, fcontact and gcontact
|
/// @todo Fetch contact details by "get_contact_details_by_url" instead of queries to contact, fcontact and gcontact
|
||||||
|
|
|
@ -148,8 +148,8 @@ function notifications_content(&$a) {
|
||||||
|
|
||||||
// The link to switch between ignored and normal connection requests
|
// The link to switch between ignored and normal connection requests
|
||||||
$notif_show_lnk = array(
|
$notif_show_lnk = array(
|
||||||
'href' => ($all === false ? 'notifications/intros/all' : 'notifications/intros' ),
|
'href' => (!$all ? 'notifications/intros/all' : 'notifications/intros' ),
|
||||||
'text' => ($all === false ? t('Show Ignored Requests') : t('Hide Ignored Requests'))
|
'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
|
// Loop through all introduction notifications.This creates an array with the output html for each
|
||||||
|
|
Loading…
Reference in a new issue