Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3748139
D123.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
469 B
Referenced Files
None
Subscribers
None
D123.id.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 17, 06:49 (3 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2248861
Default Alt Text
D123.id.diff (469 B)
Attached To
Mode
D123: Improve PhabricatorAPI::getFirstResult()
Attached
Detach File
Event Timeline
Log In to Comment