From 8364b37f4625f1993097e6c138871732e48c14ea Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Mon, 11 Apr 2022 12:43:18 +0200 Subject: [PATCH] Fix some mail actions e.g. "view as source" or "Html" no longer working --- api/src/Header/UserAgent.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/src/Header/UserAgent.php b/api/src/Header/UserAgent.php index 49970e3e4e..81f2d18662 100644 --- a/api/src/Header/UserAgent.php +++ b/api/src/Header/UserAgent.php @@ -32,11 +32,11 @@ class UserAgent /** * Version of user-agent as specified by browser * - * @return string + * @return integer */ public static function version() { - return self::$ua_version; + return (int)self::$ua_version; } /**