projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[0005684] Attach documents: error message when attaching document on some php8 versio...
[fa-stable.git]
/
includes
/
ui
/
simple_crud_class.inc
diff --git
a/includes/ui/simple_crud_class.inc
b/includes/ui/simple_crud_class.inc
index f6375635ebaa6e3bcbac799342b099adbc50241b..f276c3b5a9e36f614cb0c0654c37f6129559d687 100644
(file)
--- a/
includes/ui/simple_crud_class.inc
+++ b/
includes/ui/simple_crud_class.inc
@@
-251,6
+251,9
@@
class simple_crud {
$name = $fmt;
$fmt = array();
}
$name = $fmt;
$fmt = array();
}
+ if is_string($fmt) {
+ $fmt = array('fmt' => $fmt)
+ }
$post = isset($fmt['post']) ? $fmt['post'] : $name;
$fld = isset($fmt['fld']) ? $fmt['fld'] : $name;
$post = isset($fmt['post']) ? $fmt['post'] : $name;
$fld = isset($fmt['fld']) ? $fmt['fld'] : $name;
@@
-270,6
+273,9
@@
class simple_crud {
$name = $fmt;
$fmt = array();
}
$name = $fmt;
$fmt = array();
}
+ if is_string($fmt) {
+ $fmt = array('fmt' => $fmt)
+ }
$post = isset($fmt['post']) ? $fmt['post'] : $name;
$fld = isset($fmt['fld']) ? $fmt['fld'] : $name;
$post = isset($fmt['post']) ? $fmt['post'] : $name;
$fld = isset($fmt['fld']) ? $fmt['fld'] : $name;