mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-08 17:07:03 +03:00
Fix PHP 7.4 Deprecate message
This commit is contained in:
parent
26c38b3ec9
commit
7eb1defa16
7 changed files with 22 additions and 22 deletions
|
|
@ -89,11 +89,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;
|
||||
|
|
|
|||
|
|
@ -119,16 +119,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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -96,11 +96,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