mirror of
https://github.com/e107inc/e107.git
synced 2025-08-13 10:04:35 +02:00
Plugin script tests and PHP8 fixes.
This commit is contained in:
@@ -10,17 +10,15 @@
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
$pm_prefs = e107::getPlugPref('pm');
|
||||
|
||||
if(!check_class($pm_prefs['pm_class']))
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
if (!defined('e107_INIT')) { exit; }
|
||||
if (!e107::isInstalled('pm')) { return ''; }
|
||||
|
||||
$pm_prefs = e107::getPlugPref('pm');
|
||||
$pmClass = varset($pm_prefs['pm_class'], e_UC_NOBODY);
|
||||
if(!check_class($pmClass))
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
@@ -142,7 +140,8 @@ $sc->wrapper('pm_menu');
|
||||
// $txt = "\n".$tp->parseTemplate($pm_menu_template, TRUE, $sc);
|
||||
$txt = "\n".$tp->parseTemplate($template, TRUE, $sc);
|
||||
|
||||
if($pm_inbox['inbox']['new'] > 0 && $pm_prefs['popup'] && strpos(e_SELF, 'pm.php') === FALSE && $_COOKIE['pm-alert'] != 'ON')
|
||||
$inboxNew = (int) varset($pm_inbox['inbox']['new'], 0);
|
||||
if($inboxNew > 0 && $pm_prefs['popup'] && strpos(e_SELF, 'pm.php') === FALSE && $_COOKIE['pm-alert'] != 'ON')
|
||||
{
|
||||
$txt .= pm_show_popup($pm_inbox, $pm_prefs['popup_delay']);
|
||||
}
|
||||
|
Reference in New Issue
Block a user