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:
parent
aaf450ea93
commit
432456633d
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user