summaryrefslogtreecommitdiff
path: root/forum/utils/contacts.php
diff options
context:
space:
mode:
authordeva <deva>2008-10-26 20:53:16 +0000
committerdeva <deva>2008-10-26 20:53:16 +0000
commit3b5656db543462ec1f126d0d97b1ee1ba25c782e (patch)
treee85f52b8a361dffa3712baebc08a4000effc3f5c /forum/utils/contacts.php
parentd2b6d71dfc8f353d4b56f1b76552f6897493bb6d (diff)
Added no-cache pragma. Fixed indentation in forum code.
Diffstat (limited to 'forum/utils/contacts.php')
-rw-r--r--forum/utils/contacts.php6
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&amp;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&amp;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();