diff options
Diffstat (limited to 'classes/BiblioIsisDb.php')
-rw-r--r-- | classes/BiblioIsisDb.php | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/classes/BiblioIsisDb.php b/classes/BiblioIsisDb.php index f2d97be..166767d 100644 --- a/classes/BiblioIsisDb.php +++ b/classes/BiblioIsisDb.php @@ -215,9 +215,6 @@ class BiblioIsisDb implements IsisDb { * * @param $value * Dataset. - * - * @todo - * Check is_array condition. */ function subfields_switch($key, &$value) { if (!is_array($value)) { @@ -347,14 +344,11 @@ class BiblioIsisDb implements IsisDb { * * @return * True if repetitive, false otherwise. - * - * @todo - * Check log message as BiblioIsis always output arrays. */ function is_repetitive($field, $value) { if (isset($this->format['fields'][$field]['repeat']) && $this->format['fields'][$field]['repeat'] == FALSE) { - if (!is_array($value)) { + if (is_array($value) && count($value) > 1) { $this->logger("$field is configured as non repetitive but data shows a repetition for value $value"); } return FALSE; |