From 46e384198bfe8a9ee464de6c3157e8dbc0e5d550 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 11 Nov 2021 07:59:54 +0100 Subject: [PATCH] fix PHP 8.0 TypeError: Unsupported operand types: string & int --- api/src/Mail/Script.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/Mail/Script.php b/api/src/Mail/Script.php index a70d00e9d4..07647b7c72 100644 --- a/api/src/Mail/Script.php +++ b/api/src/Mail/Script.php @@ -158,7 +158,7 @@ class Script // s will be encoded as \\n. undo this. $rule['action_arg'] = preg_replace("/\\\\n/","\r\n",$rule['action_arg']); $rule['action_arg'] = stripslashes($rule['action_arg']); - $rule['flg'] = $bits[8]; // bitwise flag + $rule['flg'] = $bits[8] = (int)$bits[8]; // bitwise flag $rule['field'] = stripslashes($bits[9]); $rule['field_val'] = stripslashes($bits[10]); $rule['size'] = $bits[11];