Skip to content

Commit

Permalink
Merge pull request #628 from zimur/fix-callMethodSafe
Browse files Browse the repository at this point in the history
Fix callMethodSafe
  • Loading branch information
sergejey committed Sep 22, 2019
2 parents 5595398 + 556cc69 commit e050f15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/objects/objects.class.php
Expand Up @@ -511,7 +511,7 @@ function callMethodSafe($name, $params = 0)

$call_stack[] = $current_call;
if (!is_array($params)) {
$params = array();
$params = array($params);
}
$params['m_c_s'] = $call_stack;
$result = callAPI('/api/method/' . urlencode($this->object_title . '.' . $name), 'GET', $params);
Expand Down

0 comments on commit e050f15

Please sign in to comment.