From 30e2c140203e216867d57e3fe0033360fa5d63b4 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Mon, 16 Jan 2023 22:54:05 +0100 Subject: [PATCH] Small fix --- src/danog/MadelineProto/Magic.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/danog/MadelineProto/Magic.php b/src/danog/MadelineProto/Magic.php index b062f7eff..098c000f9 100644 --- a/src/danog/MadelineProto/Magic.php +++ b/src/danog/MadelineProto/Magic.php @@ -278,8 +278,8 @@ final class Magic self::$altervista = isset($_SERVER['SERVER_ADMIN']) && \strpos($_SERVER['SERVER_ADMIN'], 'altervista.org'); self::$zerowebhost = isset($_SERVER['SERVER_ADMIN']) && \strpos($_SERVER['SERVER_ADMIN'], '000webhost.io'); self::$can_getmypid = !self::$altervista && !self::$zerowebhost; + self::$version = null; if (\file_exists(__DIR__.'/../../../.git/refs/heads/stable')) { - self::$version = null; try { self::$version = @\file_get_contents(__DIR__.'/../../../.git/refs/heads/stable'); self::$revision = 'Revision: '.self::$version;