Permalink
Browse files

Tidy up status line in ContactView for possible undefined status but …

…positive number of events
  • Loading branch information...
1 parent 6e0fe8e commit 1cc09acf095f041761e876a9d2a775c87c79bca0 @benlangfeld committed Nov 1, 2010
Showing with 3 additions and 1 deletion.
  1. +3 −1 Views/ContactView.j
View
@@ -34,7 +34,9 @@
{
[nickname setObjectValue:[aValue nickname]];
[nickname sizeToFit];
- var s = [aValue XMPPStatus];
+ var s = @"";
+ if ([aValue XMPPStatus])
+ s += [aValue XMPPStatus];
if ([aValue numberOfEvents] > 0)
s += " (" + [aValue numberOfEvents] + ")";
[status setObjectValue:s];

0 comments on commit 1cc09ac

Please sign in to comment.