}
$order_sql = implode(", ", $asOrder);
- if ($limit!="")
+ if($limit!="")
$limit = " LIMIT ".$limit;
$r = q("SELECT * FROM `notify` WHERE `uid` = %d $filter_sql ORDER BY $order_sql $limit",
private function networkTotal($seen = 0) {
$sql_seen = "";
- if ($seen === 0)
+ if($seen === 0)
$sql_seen = " AND `item`.`unseen` = 1 ";
$r = q("SELECT COUNT(*) AS `total`
$notifs = array();
$sql_seen = "";
- if ($seen === 0)
+ if($seen === 0)
$sql_seen = " AND `item`.`unseen` = 1 ";
private function systemTotal($seen = 0) {
$sql_seen = "";
- if ($seen === 0)
+ if($seen === 0)
$sql_seen = " AND `seen` = 0 ";
$r = q("SELECT COUNT(*) AS `total` FROM `notify` WHERE `uid` = %d $sql_seen",
$notifs = array();
$sql_seen = "";
- if ($seen === 0)
+ if($seen === 0)
$sql_seen = " AND `seen` = 0 ";
$r = q("SELECT `id`, `url`, `photo`, `msg`, `date`, `seen` FROM `notify`
$sql_seen = "";
$sql_extra = $this->_personal_sql_extra();
- if ($seen === 0)
+ if($seen === 0)
$sql_seen = " AND `item`.`unseen` = 1 ";
$r = q("SELECT COUNT(*) AS `total`
$notifs = array();
$sql_seen = "";
- if ($seen === 0)
+ if($seen === 0)
$sql_seen = " AND `item`.`unseen` = 1 ";
$r = q("SELECT `item`.`id`,`item`.`parent`, `item`.`verb`, `item`.`author-name`, `item`.`unseen`,
private function homeTotal($seen = 0) {
$sql_seen = "";
- if ($seen === 0)
+ if($seen === 0)
$sql_seen = " AND `item`.`unseen` = 1 ";
$r = q("SELECT COUNT(*) AS `total` FROM `item`
$notifs = array();
$sql_seen = "";
- if ($seen === 0)
+ if($seen === 0)
$sql_seen = " AND `item`.`unseen` = 1 ";
$r = q("SELECT `item`.`id`,`item`.`parent`, `item`.`verb`, `item`.`author-name`, `item`.`unseen`,
private function introTotal($all = false) {
$sql_extra = "";
- if (!$all)
+ if(!$all)
$sql_extra = " AND `ignore` = 0 ";
$r = q("SELECT COUNT(*) AS `total` FROM `intro`
$notifs = array();
$sql_extra = "";
- if (!$all)
+ 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
// We have to distinguish between these two because they use different data.
// Contact suggestions
- if ($it['fid']) {
+ if($it['fid']) {
$return_addr = bin2hex($this->a->user['nickname'] . '@' . $this->a->get_hostname() . (($this->a->path) ? '/' . $this->a->path : ''));
$it['gnetwork'] = $ret["network"];
// Don't show these data until you are connected. Diaspora is doing the same.
- if ($it['gnetwork'] === NETWORK_DIASPORA) {
+ if($it['gnetwork'] === NETWORK_DIASPORA) {
$it['glocation'] = "";
$it['gabout'] = "";
$it['ggender'] = "";