Skip to content

Commit 9a9cfe1

Browse files
committed
fix: update example
1 parent b154e8b commit 9a9cfe1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

examples/ajax/ajax_interface.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,7 @@
3131
$mta = new Mta($server, $auth);
3232

3333
$val = explode(",", $val);
34-
$json_data = json_encode($val);
35-
echo $mta->getResource($resource)->call($function, $json_data);
36-
34+
echo $mta->getResource($resource)->call($function, $val);
3735
} catch( Exception $e ) {
3836
@header('HTTP/1.0 500 Internal Server Error');
3937
echo $e->getMessage();

0 commit comments

Comments
 (0)