diff --git a/include/conversation.php b/include/conversation.php
index 8e868afec7..ddb01ec9b8 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -1043,13 +1043,18 @@ function status_editor($a,$x, $notes_cid = 0, $popup=false) {
}
}
- if($mail_enabled) {
- $selected = (($pubmail_enabled) ? ' checked="checked" ' : '');
- $jotnets .= '
' . t("Post to Email") . '
';
- }
+ if (!$a->user['hidewall']) {
+ if($mail_enabled) {
+ $selected = (($pubmail_enabled) ? ' checked="checked" ' : '');
+ $jotnets .= ' ' . t("Post to Email") . '
';
+ }
+
+ call_hooks('jot_networks', $jotnets);
+ } else
+ $jotnets .= sprintf(t('Connectors disabled, since "%s" is enabled.'),
+ t('Hide your profile details from unknown viewers?'));
call_hooks('jot_tool', $jotplugins);
- call_hooks('jot_networks', $jotnets);
if($notes_cid)
$jotnets .= '';
diff --git a/mod/install.php b/mod/install.php
index b92856690e..4be728f267 100755
--- a/mod/install.php
+++ b/mod/install.php
@@ -504,7 +504,7 @@ function load_database($db) {
foreach($arr as $a) {
if(strlen(trim($a))) {
$r = @$db->q(trim($a));
- if(! $r) {
+ if(false === $r) {
$errors .= t('Errors encountered creating database tables.') . $a . EOL;
}
}