aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio <silvio@devlet.com.br>2010-08-19 13:57:49 -0300
committerSilvio <silvio@devlet.com.br>2010-08-19 13:57:49 -0300
commita9033a0f4ce19122d4aad932344abf4fbe3b29cd (patch)
tree52c73a6d87a67221e4950e488fba12376bb975c5
parentc28e771042d34110f9088fd8555043b01afd5df9 (diff)
downloadcinisis-a9033a0f4ce19122d4aad932344abf4fbe3b29cd.tar.gz
cinisis-a9033a0f4ce19122d4aad932344abf4fbe3b29cd.tar.bz2
Cleanup at IsisFinder methods
-rw-r--r--classes/IsisFinder.php10
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;
}