1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-16 19:44:09 +02:00

PHP8 fixes.

This commit is contained in:
Cameron
2021-01-14 11:32:02 -08:00
parent 3a166c253b
commit 7e90b791ba
2 changed files with 57 additions and 42 deletions

View File

@@ -101,7 +101,10 @@ class social_shortcodes extends e_shortcode
$tmp = explode(",",$parm['type']);
foreach($tmp as $v)
{
$newList[$v] = $social[$v];
if(isset($social[$v]))
{
$newList[$v] = $social[$v];
}
}
@@ -387,7 +390,10 @@ class social_shortcodes extends e_shortcode
$tmp = explode(",",$parm['type']);
foreach($tmp as $v)
{
$newlist[$v] = $opt[$v];
if(isset($opt[$v]))
{
$newlist[$v] = $opt[$v];
}
}
$opt = $newlist;