diff options
author | Silvio <silvio@devlet.com.br> | 2010-08-19 13:57:49 -0300 |
---|---|---|
committer | Silvio <silvio@devlet.com.br> | 2010-08-19 13:57:49 -0300 |
commit | a9033a0f4ce19122d4aad932344abf4fbe3b29cd (patch) | |
tree | 52c73a6d87a67221e4950e488fba12376bb975c5 /classes/IsisFinder.php | |
parent | c28e771042d34110f9088fd8555043b01afd5df9 (diff) | |
download | cinisis-a9033a0f4ce19122d4aad932344abf4fbe3b29cd.tar.gz cinisis-a9033a0f4ce19122d4aad932344abf4fbe3b29cd.tar.bz2 |
Cleanup at IsisFinder methods
Diffstat (limited to 'classes/IsisFinder.php')
-rw-r--r-- | classes/IsisFinder.php | 10 |
1 files 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; } |