Page MenuHomePhorge

Hovercards: Avoid "Undefined index: objectPHID" when passing bogus data
ClosedPublic

Authored by aklapper on Thu, Dec 5, 22:38.

Details

Summary

Do not throw an exception when passing bogus parameters to hovercards but properly handle the missing array index by setting $object_phid to null.
In consequence, see a proper hovercard correctly displaying Unknown Object (????) instead of an exception.

Closes T15969

Test Plan

Diff Detail

Repository
rP Phorge
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

aklapper requested review of this revision.Thu, Dec 5, 22:38

Thaaanks - If I'm not wrong we can = idx($card, 'objectPHID');

This revision is now accepted and ready to land.Thu, Dec 5, 22:57

Right... one day I may get used to all those Phorge shortcuts, thanks