Page MenuHomeDevCentral

D509.diff
No OneTemporary

D509.diff

diff --git a/app/Phabricator/PhabricatorStory.php b/app/Phabricator/PhabricatorStory.php
--- a/app/Phabricator/PhabricatorStory.php
+++ b/app/Phabricator/PhabricatorStory.php
@@ -108,8 +108,8 @@
* @return string The object type, as a 4 letters string (e.g. 'TASK')
*/
public function getObjectType () {
- if (!array_key_exists('objectPHID', $this->data)) {
- return 'MISC';
+ if ($this->data === null || !array_key_exists('objectPHID', $this->data)) {
+ return 'VOID';
}
return substr($this->data['objectPHID'], 5, 4);

File Metadata

Mime Type
text/plain
Expires
Fri, Oct 4, 13:23 (21 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2172968
Default Alt Text
D509.diff (593 B)

Event Timeline