Bugfixes
This commit is contained in:
parent
999b3e7053
commit
abca755bac
@ -15,7 +15,7 @@
|
||||
"require": {
|
||||
"php": ">=5.6.0",
|
||||
"danog/phpstruct": "dev-fast",
|
||||
"phpseclib/phpseclib": "dev-master",
|
||||
"phpseclib/phpseclib": "dev-ige",
|
||||
"vlucas/phpdotenv": "^2.4",
|
||||
"krakjoe/pthreads-polyfill": "dev-master"
|
||||
},
|
||||
|
@ -17,8 +17,11 @@ if (file_exists('web_data.php')) {
|
||||
}
|
||||
|
||||
echo 'Deserializing MadelineProto from session.madeline...'.PHP_EOL;
|
||||
$MadelineProto = \danog\MadelineProto\Serialization::deserialize('session.madeline');
|
||||
|
||||
$MadelineProto = false;
|
||||
try {
|
||||
$MadelineProto = \danog\MadelineProto\Serialization::deserialize('session.madeline');
|
||||
} catch (\danog\MadelineProto\Exception $e) {
|
||||
}
|
||||
if (file_exists('.env')) {
|
||||
echo 'Loading .env...'.PHP_EOL;
|
||||
$dotenv = new Dotenv\Dotenv(getcwd());
|
||||
|
Loading…
Reference in New Issue
Block a user