aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio <silvio@devlet.com.br>2010-06-25 14:55:13 -0300
committerSilvio <silvio@devlet.com.br>2010-06-25 14:55:13 -0300
commit07224194261e0561b0b5c511902acda8bc36fa55 (patch)
tree8394c4160e37245b445644b844c3d116bba5e066
parent696033750428a2701a7dd953383bf0b643776877 (diff)
downloadcinisis-07224194261e0561b0b5c511902acda8bc36fa55.tar.gz
cinisis-07224194261e0561b0b5c511902acda8bc36fa55.tar.bz2
Fixin BiblioIsis::is_repetitive() duplicate conformance checking
-rw-r--r--classes/BiblioIsisDb.php8
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;