Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Maarch
maarchRM
Commits
68ebeccd
Verified
Commit
68ebeccd
authored
Feb 24, 2020
by
Cyril Vazquez
Browse files
Fix count on empty property (awaiting array)
parent
ebad080f
Pipeline
#6965
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/bundle/recordsManagement/Controller/archiveEntryTrait.php
View file @
68ebeccd
...
...
@@ -350,7 +350,7 @@ trait archiveEntryTrait
{
// Set archive name when mono document
if
(
empty
(
$archive
->
archiveName
))
{
if
(
count
(
$archive
->
digitalResources
))
{
if
(
is_array
(
$archive
->
digitalResources
)
&&
count
(
$archive
->
digitalResources
))
{
foreach
(
$archive
->
digitalResources
as
$digitalResource
)
{
if
(
isset
(
$digitalResource
->
fileName
))
{
$archive
->
archiveName
=
pathinfo
(
$digitalResource
->
fileName
,
\
PATHINFO_FILENAME
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment