From 5c2139b6e3be2ddccde4d49dfd937a24656c6e31 Mon Sep 17 00:00:00 2001 From: Joe Date: Sat, 25 Mar 2023 22:50:30 +0100 Subject: [PATCH] Rerun. Attach documents: error message when attaching document on some php8 versions fixed. --- includes/ui/simple_crud_class.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/ui/simple_crud_class.inc b/includes/ui/simple_crud_class.inc index f276c3b5..9ab24aa5 100644 --- a/includes/ui/simple_crud_class.inc +++ b/includes/ui/simple_crud_class.inc @@ -251,8 +251,8 @@ class simple_crud { $name = $fmt; $fmt = array(); } - if is_string($fmt) { - $fmt = array('fmt' => $fmt) + if (is_string($fmt)) { + $fmt = array('fmt' => $fmt); } $post = isset($fmt['post']) ? $fmt['post'] : $name; $fld = isset($fmt['fld']) ? $fmt['fld'] : $name; @@ -273,8 +273,8 @@ class simple_crud { $name = $fmt; $fmt = array(); } - if is_string($fmt) { - $fmt = array('fmt' => $fmt) + if (is_string($fmt)) { + $fmt = array('fmt' => $fmt); } $post = isset($fmt['post']) ? $fmt['post'] : $name; $fld = isset($fmt['fld']) ? $fmt['fld'] : $name; -- 2.30.2