Page MenuHomeDevCentral

D123.diff
No OneTemporary

D123.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, 03:45 (22 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2248861
Default Alt Text
D123.diff (469 B)

Event Timeline