TrellisDesk -> php 5.4.4 support

Noticed trellisdesk would not load correctly with php 5.4.4 making these few changes at least got the ui showing up, however there are other major php bugs that need to look into.