if (isset($msg[$i])) {
$id = $msg[$i];
$body_a = sqimap_run_command($imapConnection, "FETCH $id RFC822",true, $response, $readmessage, $uid_support);
- if ($response = 'OK') {
+ if ($response == 'OK') {
$k = $i + $start_index;
$subject = $msgs[$k]['SUBJECT'];