diff options
author | Brion Vibber <brion@pobox.com> | 2010-02-12 11:18:35 -0800 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-02-12 11:18:35 -0800 |
commit | 122c8677b7004bae4cfe7e2bd49fc1bc3187c72c (patch) | |
tree | 552bf77b587fbb674329a95745067f358c0a25d3 /lib/util.php | |
parent | 3c79448cd817d01b4421262fefc29eb558cede20 (diff) | |
parent | fd3c9334bfcfe627446feb86ac3054b24ed05449 (diff) |
Merge branch 'testing' of gitorious.org:statusnet/mainline into 0.9.x
Diffstat (limited to 'lib/util.php')
-rw-r--r-- | lib/util.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util.php b/lib/util.php index 879834a3d..e255c5fe0 100644 --- a/lib/util.php +++ b/lib/util.php @@ -690,7 +690,7 @@ function common_group_link($sender_id, $nickname) { $sender = Profile::staticGet($sender_id); $group = User_group::getForNickname($nickname); - if ($group && $sender->isMember($group)) { + if ($sender && $group && $sender->isMember($group)) { $attrs = array('href' => $group->permalink(), 'class' => 'url'); if (!empty($group->fullname)) { |