trac750 fix for crash when a user logs in and hasn't already posted a notice

This commit is contained in:
Zach Copley 2009-01-23 05:47:34 +00:00
parent df25b5f5f5
commit 36d55526d3
1 changed files with 10 additions and 9 deletions

View File

@ -69,7 +69,9 @@ class FacebookhomeAction extends FacebookAction
// Make sure the user's profile box has the lastest notice
$notice = $this->user->getCurrentNotice();
if ($notice) {
$this->updateProfileBox($notice);
}
if ($this->arg('status_submit') == 'Send') {
$this->saveNewNotice();
@ -80,7 +82,6 @@ class FacebookhomeAction extends FacebookAction
// of the app
$this->showPage();
} else {
// User hasn't authenticated yet, prompt for creds