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