Ignore:
Timestamp:
Apr 6, 2020, 11:17:40 PM (5 years ago)
Author:
chronos
Message:
  • Modified: Improved code format.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/EmailQueue/EmailQueue.php

    r738 r873  
    1111    $Output = $this->System->ModuleManager->Modules['EmailQueue']->Process();
    1212    $Output = $this->SystemMessage('Zpracování fronty emailů', 'Nové emaily byly odeslány').$Output;
    13     return($Output);
     13    return ($Output);
    1414  }
    1515}
     
    7979      'Subject' => $Subject, 'Content' => $Content, 'Time' => 'NOW()',
    8080      'From' => $From);
    81     if($AttachmentFileId != '') $Values['AttachmentFile'] = $AttachmentFileId;
     81    if ($AttachmentFileId != '') $Values['AttachmentFile'] = $AttachmentFileId;
    8282    $this->Database->insert('EmailQueue', $Values);
    8383  }
     
    8787    $Output = '';
    8888    $DbResult = $this->Database->select('EmailQueue', '*', 'Archive=0');
    89     while($DbRow = $DbResult->fetch_assoc())
     89    while ($DbRow = $DbResult->fetch_assoc())
    9090    {
    9191      $Mail = new Mail();
     
    9595      $Mail->AddBody(strip_tags($DbRow['Content']), 'text/plain');
    9696      $Mail->AddBody($DbRow['Content'], 'text/html');
    97       if($DbRow['AttachmentFile'] != '')
     97      if ($DbRow['AttachmentFile'] != '')
    9898      {
    9999        $DbResult2 = $this->Database->select('File', '*', 'Id='.$DbRow['AttachmentFile']);
    100         while($File = $DbResult2->fetch_assoc())
     100        while ($File = $DbResult2->fetch_assoc())
    101101          $Mail->AttachFile($this->Config['Web']['FileRootFolder'].$File['DrivePath'], $File['MimeType']);
    102102      }
     
    106106      $Output .= 'To: '.$DbRow['To'].'  Subject: '.$DbRow['Subject'].'<br />';
    107107    }
    108     return($Output);
     108    return ($Output);
    109109  }
    110110}
Note: See TracChangeset for help on using the changeset viewer.