mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 12:20:44 +02:00
Fixed a bunch of PHP 7.4 syntax errors
- FIX: Removed pointless (and invalid) destructor in LinkedIn::__destruct() - FIX: All files that trigger this deprecation notice in PHP 7.4: "Array and string offset access syntax with curly braces is deprecated"
This commit is contained in:
@@ -1274,10 +1274,10 @@ class e_parse extends e_parser
|
||||
$intag = FALSE;
|
||||
while($curlen < $len && $curlen < strlen($text))
|
||||
{
|
||||
switch($text {$pos} )
|
||||
switch($text [$pos] )
|
||||
{
|
||||
case "<":
|
||||
if($text {$pos + 1} == "/")
|
||||
if($text [$pos + 1] == "/")
|
||||
{
|
||||
$closing_tag = TRUE;
|
||||
}
|
||||
@@ -1288,7 +1288,7 @@ class e_parse extends e_parser
|
||||
|
||||
|
||||
case ">":
|
||||
if($text {$pos - 1} == "/")
|
||||
if($text [$pos - 1] == "/")
|
||||
{
|
||||
$closing_tag = TRUE;
|
||||
}
|
||||
@@ -1303,7 +1303,7 @@ class e_parse extends e_parser
|
||||
|
||||
|
||||
case "&":
|
||||
if($text {$pos + 1} == "#")
|
||||
if($text [$pos + 1] == "#")
|
||||
{
|
||||
$end = strpos(substr($text, $pos, 7), ";");
|
||||
if($end !== FALSE)
|
||||
|
Reference in New Issue
Block a user