diff options
author | deva <deva> | 2008-10-26 20:53:16 +0000 |
---|---|---|
committer | deva <deva> | 2008-10-26 20:53:16 +0000 |
commit | 3b5656db543462ec1f126d0d97b1ee1ba25c782e (patch) | |
tree | e85f52b8a361dffa3712baebc08a4000effc3f5c /forum/utils/contacts.php | |
parent | d2b6d71dfc8f353d4b56f1b76552f6897493bb6d (diff) |
Added no-cache pragma. Fixed indentation in forum code.
Diffstat (limited to 'forum/utils/contacts.php')
-rw-r--r-- | forum/utils/contacts.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/forum/utils/contacts.php b/forum/utils/contacts.php index a83e3f5..7458108 100644 --- a/forum/utils/contacts.php +++ b/forum/utils/contacts.php @@ -130,13 +130,17 @@ class ContactGroup { public function showshort() { + global $client_is_mobile_device; $ness = 0; foreach($this->contacts as $contact) { if($contact->essential) $ness += 1; } echo " <div class=\"contactgroup\">\n"; - echo " <div class=\"title\"><a href=\"?mode=addressbook&gid=" . $this->gid . "\">" . $this->name . "</a> - ".sizeof($this->contacts)." contacts (". sprintf("%d", sizeof($this->contacts) - $ness)." hidden)</div>\n"; + echo " <div class=\"title\"><a href=\"?mode=addressbook&gid=" . $this->gid . "\">" . $this->name . "</a>"; + if(!$client_is_mobile_device) + echo " - ".sizeof($this->contacts)." contacts (". sprintf("%d", sizeof($this->contacts) - $ness)." hidden)"; + echo "</div>\n"; echo " <div class=\"contacts\">\n"; foreach($this->contacts as $contact) { if($contact->essential) $contact->showshort(); |