Page MenuHomePhabricator

D17765.diff
No OneTemporary

D17765.diff

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

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)

Event Timeline