ValueError: max(): Argument #1 ($value) must contain at least one element in max()

Created on 4 December 2023, 7 months ago
Updated 7 May 2024, about 2 months ago

Problem/Motivation

Trying to import bibliography references of the type RIS resulted on an error
ValueError: max(): Argument #1 ($value) must contain at least one element in max() (line 72 of modules/contrib/bibcite/modules/bibcite_ris/src/Encoder/RISEncoder.php).
If no $record['SP'] exists function throws an exception

Steps to reproduce

Just import RIS archive in an empty db

Proposed resolution

added a if statment previosly, so if there is no data will no enter

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

πŸ‡ͺπŸ‡ΈSpain paucala

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.69.0 2024