Skip to content

Commit

Permalink
Avoid PHP errors about overloaded properties.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Aug 27, 2020
1 parent 7b50228 commit 00a4e60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Horde/ActiveSync/Imap/Adapter.php
Expand Up @@ -107,7 +107,7 @@ public function appendMessage($folderid, $msg, array $flags = array())
return false;
}

return array_pop($ids->ids);
return array_slice($ids->ids, -1)[0];
}

/**
Expand Down

0 comments on commit 00a4e60

Please sign in to comment.