Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
fusiondirectory
fusiondirectory
Commits
5b12f3fb
Verified
Commit
5b12f3fb
authored
1 month ago
by
dockx thibault
Browse files
Options
Download
Patches
Plain Diff
(Columns) adapt to phps 8.2
Adapt columns class to php 8.2
parent
0e365a65
core-php8
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/management/columns/class_Column.inc
+3
-3
include/management/columns/class_Column.inc
with
3 additions
and
3 deletions
+3
-3
include/management/columns/class_Column.inc
+
3
−
3
View file @
5b12f3fb
...
...
@@ -50,7 +50,7 @@ class Column
if
(
isset
(
$data
[
'attributes'
]))
{
$attributes
=
$data
[
'attributes'
];
if
(
!
is_array
(
$attributes
))
{
$attributes
=
array_map
(
'trim'
,
explode
(
','
,
$attributes
));
$attributes
=
array_map
(
'trim'
,
explode
(
','
,
(
string
)
$attributes
));
}
}
if
(
isset
(
$data
[
'label'
]))
{
...
...
@@ -216,9 +216,9 @@ class Column
if
(
$b
==
''
)
{
$b
=
'31.12.0000'
;
}
list
(
$d
,
$m
,
$y
)
=
explode
(
'.'
,
$a
);
list
(
$d
,
$m
,
$y
)
=
explode
(
'.'
,
(
string
)
$a
);
$a
=
(
int
)
sprintf
(
'%04d%02d%02d'
,
$y
,
$m
,
$d
);
list
(
$d
,
$m
,
$y
)
=
explode
(
'.'
,
$b
);
list
(
$d
,
$m
,
$y
)
=
explode
(
'.'
,
(
string
)
$b
);
$b
=
(
int
)
sprintf
(
'%04d%02d%02d'
,
$y
,
$m
,
$d
);
return
$b
-
$a
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets