From 26d24dba1e1eea138acecd7ef2430e190f3619b9 Mon Sep 17 00:00:00 2001 From: Demian Katz <demian.katz@villanova.edu> Date: Fri, 12 Sep 2014 14:00:22 -0400 Subject: [PATCH] Simplified logic. --- module/VuFind/src/VuFind/Connection/WorldCatUtils.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/module/VuFind/src/VuFind/Connection/WorldCatUtils.php b/module/VuFind/src/VuFind/Connection/WorldCatUtils.php index 871fa168d3f..d4c6e2eefbd 100644 --- a/module/VuFind/src/VuFind/Connection/WorldCatUtils.php +++ b/module/VuFind/src/VuFind/Connection/WorldCatUtils.php @@ -175,10 +175,9 @@ class WorldCatUtils implements \Zend\Log\LoggerAwareInterface $isbn = preg_replace( '/[^0-9xX]/', '', isset($line->isbn[0]) ? $line->isbn[0] : '' ); - if (strlen($isbn) < 10) { - continue; + if (strlen($isbn) >= 10) { + $isbns[] = $isbn; } - $isbns[] = $isbn; } } return $isbns; -- GitLab