Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

check callable

  • Loading branch information...
commit 57219911dde3ba88d72a87bc409e30a010731025 1 parent 1671415
@weyrick authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/smModules.inc
View
4 lib/smModules.inc
@@ -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);
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.