This commit is contained in:
danogentili 2017-02-11 16:59:38 +03:00
parent 999b3e7053
commit abca755bac
2 changed files with 6 additions and 3 deletions

View File

@ -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"
},

View File

@ -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());