mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
aurjson: Use call_user_func to call functions.
call_user_func_array is unnecessary. Signed-off-by: Loui Chang <louipc.ist@gmail.com>
This commit is contained in:
parent
2acb3e17fc
commit
1bf54a32c4
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ class AurJSON {
|
|||
$this->dbh = db_connect();
|
||||
|
||||
// ugh. this works. I hate you php.
|
||||
$json = call_user_func_array(array(&$this,$http_data['type']),
|
||||
$json = call_user_func(array(&$this,$http_data['type']),
|
||||
$http_data['arg']);
|
||||
|
||||
// allow rpc callback for XDomainAjax
|
||||
|
|
Loading…
Add table
Reference in a new issue