summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2009-11-25 01:36:17 +0000
committerZach Copley <zach@status.net>2009-11-25 01:37:00 +0000
commitaeb933355dc37f4e6d519f3a266de972a814d919 (patch)
tree00cb108adc3bb227b93da7d1cb24c6a845fdfe9c /plugins
parent824e347e5572a929dacf884f3dc97d2e4a101c77 (diff)
Fixed bug where reply-sync bit wasn't getting saved
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Facebook/facebooksettings.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/plugins/Facebook/facebooksettings.php b/plugins/Facebook/facebooksettings.php
index 2f182e368..d1269f101 100644
--- a/plugins/Facebook/facebooksettings.php
+++ b/plugins/Facebook/facebooksettings.php
@@ -52,21 +52,21 @@ class FacebooksettingsAction extends FacebookAction
function saveSettings() {
- $noticesync = $this->arg('noticesync');
- $replysync = $this->arg('replysync');
- $prefix = $this->trimmed('prefix');
+ $noticesync = $this->boolean('noticesync');
+ $replysync = $this->boolean('replysync');
+ $prefix = $this->trimmed('prefix');
$original = clone($this->flink);
- $this->flink->set_flags($noticesync, $replysync, false, false);
+ $this->flink->set_flags($noticesync, false, $replysync, false);
$result = $this->flink->update($original);
if ($prefix == '' || $prefix == '0') {
- // Facebook bug: saving empty strings to prefs now fails
- // http://bugs.developers.facebook.com/show_bug.cgi?id=7110
- $trimmed = $prefix . ' ';
+ // Facebook bug: saving empty strings to prefs now fails
+ // http://bugs.developers.facebook.com/show_bug.cgi?id=7110
+ $trimmed = $prefix . ' ';
} else {
- $trimmed = substr($prefix, 0, 128);
- }
+ $trimmed = substr($prefix, 0, 128);
+ }
$this->facebook->api_client->data_setUserPreference(FACEBOOK_NOTICE_PREFIX,
$trimmed);