Page MenuHomeDevCentral

D123.id291.diff
No OneTemporary

D123.id291.diff

diff --git a/app/Phabricator/PhabricatorAPI.php b/app/Phabricator/PhabricatorAPI.php
--- a/app/Phabricator/PhabricatorAPI.php
+++ b/app/Phabricator/PhabricatorAPI.php
@@ -124,6 +124,10 @@
* @return mixed
*/
public static function getFirstResult ($reply) {
+ if (is_object($reply) && property_exists($reply, "data")) {
+ $reply = $reply->data;
+ }
+
foreach ($reply as $value) {
return $value;
}

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 18, 05:35 (20 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2250317
Default Alt Text
D123.id291.diff (469 B)

Event Timeline