]> git.mxchange.org Git - friendica.git/commitdiff
setting wasn't being applied
authorfriendica <info@friendica.com>
Fri, 13 Apr 2012 22:37:25 +0000 (15:37 -0700)
committerfriendica <info@friendica.com>
Fri, 13 Apr 2012 22:37:25 +0000 (15:37 -0700)
mod/notifications.php

index 8e3eebba14978d01624a3e598ff08a779a64cd1c..e47582966057f4511dcc3293d3af673a94c57c58 100644 (file)
@@ -151,7 +151,7 @@ function notifications_content(&$a) {
                                                '$fullname' => $rr['fname'],
                                                '$url' => zrl($rr['furl']),
                                                '$hidden' => array('hidden', t('Hide this contact from others'), ($rr['hidden'] == 1), ''),
-                                               '$activity' => array('activity', t('Post a new friend activity'), 1, t('if applicable')),
+                                               '$activity' => array('activity', t('Post a new friend activity'), (intval(get_config('system','post_newfriend')) ? '1' : 0), t('if applicable')),
 
                                                '$knowyou' => $knowyou,
                                                '$approve' => t('Approve'),
@@ -198,7 +198,7 @@ function notifications_content(&$a) {
                                        '$photo' => ((x($rr,'photo')) ? $rr['photo'] : "images/person-175.jpg"),
                                        '$fullname' => $rr['name'],
                                        '$hidden' => array('hidden', t('Hide this contact from others'), ($rr['hidden'] == 1), ''),
-                                       '$activity' => array('activity', t('Post a new friend activity'), get_config('system','post_newfriend'), t('if applicable')),
+                                       '$activity' => array('activity', t('Post a new friend activity'), (intval(get_config('system','post_newfriend')) ? '1' : 0), t('if applicable')),
                                        '$url' => zrl($rr['url']),
                                        '$knowyou' => $knowyou,
                                        '$approve' => t('Approve'),