From a9033a0f4ce19122d4aad932344abf4fbe3b29cd Mon Sep 17 00:00:00 2001 From: Silvio Date: Thu, 19 Aug 2010 13:57:49 -0300 Subject: Cleanup at IsisFinder methods --- classes/IsisFinder.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/classes/IsisFinder.php b/classes/IsisFinder.php index f877630..e4f228d 100644 --- a/classes/IsisFinder.php +++ b/classes/IsisFinder.php @@ -25,9 +25,10 @@ class IsisFinder extends IsisConnector { if ($entry == $entries) { break; } - } while (!isset($result[$field['name']]) || count($result[$field['name']]) < 2); + $values = $this->getValues($field); + } while (count($values) < 2); - if (!isset($result[$field['name']]) || count($result[$field['name']]) < 2) { + if (count($values) < 2) { return FALSE; } @@ -55,9 +56,10 @@ class IsisFinder extends IsisConnector { if ($entry == $entries) { break; } - } while (!isset($result[$field['name']])); + $values = $this->getValues($field); + } while (empty($values)); - if (!isset($result[$field['name']])) { + if (empty($values)) { return FALSE; } -- cgit v1.2.3