|
@@ -724,7 +724,7 @@ function ModifyProfile($post_errors = array())
|
|
|
redirectexit('action=profile' . ($context['user']['is_owner'] ? '' : ';u=' . $memID) . ';area=' . $current_area);
|
|
|
|
|
|
// Is this a "real" method?
|
|
|
- if (isset($profile_include_data['class']))
|
|
|
+ if (isset($profile_include_data['class']) && !empty($profile_include_data['class']) && is_string($profile_include_data['class']))
|
|
|
{
|
|
|
// Is there an instance already? nope? then create it!
|
|
|
if (empty($context['instances'][$profile_include_data['class']]) || !($context['instances'][$profile_include_data['class']] instanceof $profile_include_data['class']))
|
|
@@ -733,12 +733,13 @@ function ModifyProfile($post_errors = array())
|
|
|
$call = array($context['instances'][$profile_include_data['class']], $profile_include_data['function']);
|
|
|
}
|
|
|
|
|
|
+ // A static one or more likely, a plain good old function.
|
|
|
else
|
|
|
$call = $profile_include_data['function'];
|
|
|
|
|
|
// Is it valid?
|
|
|
if (is_callable($call))
|
|
|
- call_user_func_array($call, array($memID));
|
|
|
+ call_user_func($call, $memID);
|
|
|
|
|
|
// Set the page title if it's not already set...
|
|
|
if (!isset($context['page_title']))
|