}
}
- $compose_messages = unserialize(urldecode($restoremessages));
+ $compose_messages = unserialize($restoremessages);
sqsession_register($compose_messages,'compose_messages');
sqsession_register($composesession,'composesession');
if (isset($send)) {
}
$attach = array();
- if ($composeMessage->entities) {
+ // composeMessage can be empty when coming from a restored session
+ if (is_object($composeMessage) && $composeMessage->entities) {
foreach ($composeMessage->entities as $key => $attachment) {
$attached_file = $attachment->att_local_name;
if ($attachment->att_local_name || $attachment->body_part) {
}
return $success;
}
-?>