Created
February 8, 2012 00:30
-
-
Save bcmiller/1763432 to your computer and use it in GitHub Desktop.
statusbook-odd.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$items['user/%/edit/preferences'] = array( | |
'title' => t('Site Preferences'), | |
'page callback' => 'statusbook_preferences', | |
@@ -338,9 +337,11 @@ function statusbook_user($op, $edit, &$account, $category = | |
break; | |
case 'load': | |
// add statusbook-specific information | |
- $SQL = "SELECT privacy_data FROM {statusbook_users} S WHERE uid = %s"; | |
+ $SQL = "SELECT * FROM {statusbook_users} S WHERE uid = %s"; | |
$record = db_fetch_object(db_query($SQL, $account->uid)); | |
if (!empty($record)) { | |
+ $account->status_txt = $record->status_txt; | |
+ $account->status_txt_changed = $record->status_txt_changed; | |
$account->privacy_data = $record->privacy_data; | |
} | |
// hide the avatar if the user does not have permission to see it | |
@@ -370,7 +371,6 @@ function statusbook_user($op, $edit, &$account, $category = | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment