mirror of
https://github.com/e107inc/e107.git
synced 2025-07-30 19:30:25 +02: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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user