Skip to content

Commit

Permalink
Don't attempt to set *time properties if not exist.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Nov 24, 2017
1 parent 0ae6003 commit 520198c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/Horde/ActiveSync/Request/Settings.php
Expand Up @@ -346,8 +346,10 @@ protected function _getOofObject($info)
$info = new Horde_Support_Array($info);
$oof = Horde_ActiveSync::messageFactory('Oof');
$oof->state = $info['oofstate'];
$oof->starttime = new Horde_Date($info['starttime']);
$oof->endtime = new Horde_Date($info['endtime']);
if (!empty($info['starttime'])) {
$oof->starttime = new Horde_Date($info['starttime']);
$oof->endtime = new Horde_Date($info['endtime']);
}
$msg = Horde_ActiveSync::messageFactory('OofMessage');
$msg->internal = '';
$msg->enabled = $info['oofmsgs'][0]['enabled'];
Expand Down

0 comments on commit 520198c

Please sign in to comment.