From: Joe Date: Sat, 25 Mar 2023 21:50:30 +0000 (+0100) Subject: Rerun. Attach documents: error message when attaching document on some php8 versions... X-Git-Url: https://delta.frontaccounting.com/gitweb/?p=fa-stable.git;a=commitdiff_plain;h=5c2139b6e3be2ddccde4d49dfd937a24656c6e31 Rerun. Attach documents: error message when attaching document on some php8 versions fixed. --- 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;