Skip to content

Commit d42cfc6

Browse files
committed
fix UC communication problem
1 parent 50a9c74 commit d42cfc6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

api/uc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060

6161
if(in_array($get['action'], array('test', 'deleteuser', 'renameuser', 'gettag', 'synlogin', 'synlogout', 'updatepw', 'updatebadwords', 'updatehosts', 'updateapps', 'updateclient', 'updatecredit', 'getcredit', 'getcreditsettings', 'updatecreditsettings', 'addfeed'))) {
6262
$uc_note = new uc_note();
63-
echo $uc_note->$get['action']($get, $post);
63+
echo call_user_func(array($uc_note, $get['action']), $get, $post);
6464
exit();
6565
} else {
6666
exit(API_RETURN_FAILED);
@@ -83,7 +83,7 @@ function _serialize($arr, $htmlon = 0) {
8383
return xml_serialize($arr, $htmlon);
8484
}
8585

86-
function uc_note() {
86+
function __construct() {
8787

8888
}
8989

0 commit comments

Comments
 (0)