Skip to content

Commit

Permalink
check callable
Browse files Browse the repository at this point in the history
  • Loading branch information
weyrick committed Apr 7, 2011
1 parent 1671415 commit 5721991
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/smModules.inc
Expand Up @@ -110,7 +110,9 @@ class SM_module extends SM_object {
// run postconfig methods
if ((isset($this->postConfigList))&&(is_array($this->postConfigList))) {
foreach ($this->postConfigList as $method) {
call_user_func(array($this,$method));
$cb = array($this,$method);
if (is_callable($cb))
call_user_func($cb);
}
}

Expand Down

0 comments on commit 5721991

Please sign in to comment.