diff --git a/mod/contacts.php b/mod/contacts.php
index 320c0f420..92bce0a73 100644
--- a/mod/contacts.php
+++ b/mod/contacts.php
@@ -166,7 +166,7 @@ function contacts_content(&$a) {
'$content' => t('stopped following'),
'$nick' => $a->user['nickname'],
'$verb' => ACTIVITY_UNFOLLOW,
- '$ostat_follow' => 'http://ostatus.org/schema/1.0/unfollow' . "\r\n";
+ '$ostat_follow' => 'http://ostatus.org/schema/1.0/unfollow' . "\r\n"
));
if((x($orig_record[0],'notify')) && (strlen($orig_record[0]['notify']))) {
diff --git a/mod/display.php b/mod/display.php
index 30b55dece..cad60d275 100644
--- a/mod/display.php
+++ b/mod/display.php
@@ -243,7 +243,7 @@ function display_content(&$a) {
$tmp_item = replace_macros($template,array(
'$id' => $item['item_id'],
- '$title' => t('View $name's profile'),
+ '$title' => t('View $name\'s profile'),
'$profile_url' => $profile_link,
'$name' => $profile_name,
'$sparkle' => $sparkle,
diff --git a/mod/network.php b/mod/network.php
index e1bec8dfa..08607fa18 100644
--- a/mod/network.php
+++ b/mod/network.php
@@ -104,10 +104,15 @@ function network_content(&$a, $update = 0) {
}
$contacts = expand_groups(array($group));
- $contact_str = implode(',',$contacts);
- $sql_extra = " AND `item`.`parent` IN ( SELECT `parent` FROM `item` WHERE `id` = `parent` AND `contact-id` IN ( $contact_str )) ";
- $o = '
' . t('Group: ') . $r[0]['name'] . '
' . $o;
-
+ if((is_array($contacts)) && count($contacts)) {
+ $contact_str = implode(',',$contacts);
+ }
+ else {
+ $contact_str = ' 0 ';
+ notice( t('Group is empty'));
+ }
+ $sql_extra = " AND `item`.`parent` IN ( SELECT `parent` FROM `item` WHERE `id` = `parent` AND `contact-id` IN ( $contact_str )) ";
+ $o = '' . t('Group: ') . $r[0]['name'] . '
' . $o;
}
$r = q("SELECT COUNT(*) AS `total`
@@ -286,7 +291,7 @@ function network_content(&$a, $update = 0) {
$tmp_item = replace_macros($template,array(
'$id' => $item['item_id'],
- '$title' => t('View $name's profile'),
+ '$title' => t('View $name\'s profile'),
'$profile_url' => $profile_link,
'$name' => $profile_name,
'$thumb' => $profile_avatar,
diff --git a/mod/profile.php b/mod/profile.php
index 7a57bd5a4..5479f2806 100644
--- a/mod/profile.php
+++ b/mod/profile.php
@@ -344,7 +344,7 @@ function profile_content(&$a, $update = 0) {
$tmp_item = replace_macros($template,array(
'$id' => $item['item_id'],
- '$title' => t('View $name's profile'),
+ '$title' => t('View $name\'s profile'),
'$profile_url' => $profile_link,
'$name' => $profile_name,
'$thumb' => $profile_avatar,