Permalink
Browse files

check callable

  • Loading branch information...
1 parent 1671415 commit 57219911dde3ba88d72a87bc409e30a010731025 @weyrick committed Apr 7, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/smModules.inc
View
@@ -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);
}
}

0 comments on commit 5721991

Please sign in to comment.