Delete invalid settings

This commit is contained in:
Daniil Gentili 2018-03-01 20:33:16 +00:00
parent 95dde221cc
commit 05aa720c5d

View File

@ -226,6 +226,7 @@ class MTProto
} }
foreach ($settings['connection_settings'] as $key => &$connection) { foreach ($settings['connection_settings'] as $key => &$connection) {
if (!is_array($connection)) { if (!is_array($connection)) {
unset($settings['connection_settings'][$key]);
continue; continue;
} }
if (!isset($connection['proxy'])) { if (!isset($connection['proxy'])) {