diff --git a/e107_plugins/pm/pm_shortcodes.php b/e107_plugins/pm/pm_shortcodes.php index 1cc0be281..c31fe8fbe 100644 --- a/e107_plugins/pm/pm_shortcodes.php +++ b/e107_plugins/pm/pm_shortcodes.php @@ -575,13 +575,13 @@ if(!class_exists('plugin_pm_pm_shortcodes')) } - if(count($parm) == 0) + if(!empty($parm)) { - $extra = '.'.($this->pmMode == 'outbox' ? 'outbox' : 'inbox'); + $extra = '.'.$parm; } else { - $extra = '.'.$parm; + $extra = '.'.($this->pmMode == 'outbox' ? 'outbox' : 'inbox'); }