thread_id && ($send_log->customer_id || ($send_log->user_id && $send_log->user_id == $send_log->thread->user_id))) { $send_log->thread->send_status = $send_log->status; $send_log->thread->save(); } } }