1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 20:58:30 +01:00

Update pm_shortcodes.php

Where no parameter is passed in the shortcode $parm is received as an array. This resulted in 'inbox' being added to the delete url in the outbox where {PM_DELETE} is called.
This commit is contained in:
pricey1981 2017-02-08 20:57:07 +00:00 committed by GitHub
parent aaf450ea93
commit 432456633d

View File

@ -575,13 +575,13 @@ if(!class_exists('plugin_pm_pm_shortcodes'))
}
if($parm != '')
if(count($parm) == 0)
{
$extra = '.'.$parm;
$extra = '.'.($this->pmMode == 'outbox' ? 'outbox' : 'inbox');
}
else
{
$extra = '.'.($this->pmMode == 'outbox' ? 'outbox' : 'inbox');
$extra = '.'.$parm;
}