Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F17847065
D17689.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
869 B
Referenced Files
None
Subscribers
None
D17689.diff
View Options
diff --git a/src/applications/phortune/controller/account/PhortuneAccountProfileController.php b/src/applications/phortune/controller/account/PhortuneAccountProfileController.php
--- a/src/applications/phortune/controller/account/PhortuneAccountProfileController.php
+++ b/src/applications/phortune/controller/account/PhortuneAccountProfileController.php
@@ -32,13 +32,14 @@
}
protected function buildApplicationCrumbs() {
- $account = $this->getAccount();
- $id = $account->getID();
- $account_uri = $this->getApplicationURI("/{$id}/");
-
$crumbs = parent::buildApplicationCrumbs();
- $crumbs->addTextCrumb($account->getName(), $account_uri);
$crumbs->setBorder(true);
+
+ $account = $this->getAccount();
+ if ($account) {
+ $crumbs->addTextCrumb($account->getName(), $account->getURI());
+ }
+
return $crumbs;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jul 28, 5:39 AM (3 d, 8 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
8670061
Default Alt Text
D17689.diff (869 B)
Attached To
Mode
D17689: Fix a bug where Phortune could fatal while building crumbs
Attached
Detach File
Event Timeline
Log In to Comment