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

View File

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