mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-25 10:09:20 +03:00
Fix PHP 7.4 Deprecate message
This commit is contained in:
parent
15ceddc202
commit
a250d84025
8 changed files with 27 additions and 27 deletions
|
|
@ -102,11 +102,11 @@ class Email
|
|||
|
||||
while ($iCurrentIndex < \strlen($sEmailAddress))
|
||||
{
|
||||
switch ($sEmailAddress{$iCurrentIndex})
|
||||
switch ($sEmailAddress[$iCurrentIndex])
|
||||
{
|
||||
// case '\'':
|
||||
case '"':
|
||||
// $sQuoteChar = $sEmailAddress{$iCurrentIndex};
|
||||
// $sQuoteChar = $sEmailAddress[$iCurrentIndex];
|
||||
if ((!$bInName) && (!$bInAddress) && (!$bInComment))
|
||||
{
|
||||
$bInName = true;
|
||||
|
|
|
|||
|
|
@ -156,16 +156,16 @@ class EmailCollection extends \MailSo\Base\Collection
|
|||
|
||||
while ($iCurrentPos < $sWorkingRecipientsLen)
|
||||
{
|
||||
switch ($sWorkingRecipients{$iCurrentPos})
|
||||
switch ($sWorkingRecipients[$iCurrentPos])
|
||||
{
|
||||
case '\'':
|
||||
case '"':
|
||||
if (!$bIsInQuotes)
|
||||
{
|
||||
$sChQuote = $sWorkingRecipients{$iCurrentPos};
|
||||
$sChQuote = $sWorkingRecipients[$iCurrentPos];
|
||||
$bIsInQuotes = true;
|
||||
}
|
||||
else if ($sChQuote == $sWorkingRecipients{$iCurrentPos})
|
||||
else if ($sChQuote == $sWorkingRecipients[$iCurrentPos])
|
||||
{
|
||||
$bIsInQuotes = false;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -111,11 +111,11 @@ class EmailDep
|
|||
|
||||
while ($iCurrentIndex < \strlen($sEmailAddress))
|
||||
{
|
||||
switch ($sEmailAddress{$iCurrentIndex})
|
||||
switch ($sEmailAddress[$iCurrentIndex])
|
||||
{
|
||||
// case '\'':
|
||||
case '"':
|
||||
// $sQuoteChar = $sEmailAddress{$iCurrentIndex};
|
||||
// $sQuoteChar = $sEmailAddress[$iCurrentIndex];
|
||||
if ((!$bInName) && (!$bInAddress) && (!$bInComment))
|
||||
{
|
||||
$bInName = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue