Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15237171
D17765.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D17765.diff
View Options
diff --git a/src/applications/conpherence/controller/ConpherenceListController.php b/src/applications/conpherence/controller/ConpherenceListController.php
--- a/src/applications/conpherence/controller/ConpherenceListController.php
+++ b/src/applications/conpherence/controller/ConpherenceListController.php
@@ -89,13 +89,14 @@
default:
$data = $this->loadDefaultParticipation($limit);
$all_participation = $data['all_participation'];
-
- $conpherence_id = head($all_participation)->getConpherencePHID();
- $conpherence = id(new ConpherenceThreadQuery())
- ->setViewer($user)
- ->withPHIDs(array($conpherence_id))
- ->needProfileImage(true)
- ->executeOne();
+ if ($all_participation) {
+ $conpherence_id = head($all_participation)->getConpherencePHID();
+ $conpherence = id(new ConpherenceThreadQuery())
+ ->setViewer($user)
+ ->withPHIDs(array($conpherence_id))
+ ->needProfileImage(true)
+ ->executeOne();
+ }
// If $conpherence is null, NUX state will render
break;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Feb 25, 12:39 PM (4 h, 33 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7201418
Default Alt Text
D17765.diff (1 KB)
Attached To
Mode
D17765: Fix fatal when user has no conpherences
Attached
Detach File
Event Timeline
Log In to Comment