1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-30 11:18:59 +01:00

Lua fixes

This commit is contained in:
Daniil Gentili 2017-09-21 08:35:00 +00:00
parent 65f1add013
commit a01f399116

View File

@ -159,7 +159,7 @@ class Lua
public static function convert_objects(&$data) public static function convert_objects(&$data)
{ {
array_walk_recursive($data, function (&$value, $key) { array_walk_recursive($data, function (&$value, $key) {
if (is_object($value)) { if (is_object($value) && !( $value instanceof \phpseclib\Math\BigInteger)) {
$newval = []; $newval = [];
foreach (get_class_methods($value) as $name) { foreach (get_class_methods($value) as $name) {
$newval[$name] = [$value, $name]; $newval[$name] = [$value, $name];