Page MenuHomePhabricator

D17764.diff
No OneTemporary

D17764.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
Sun, May 12, 2:32 AM (3 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6285383
Default Alt Text
D17764.diff (1 KB)

Event Timeline