diff options
author | Silvio <silvio@devlet.com.br> | 2010-08-18 17:10:00 -0300 |
---|---|---|
committer | Silvio <silvio@devlet.com.br> | 2010-08-18 17:10:00 -0300 |
commit | 8c00b2a834fef61639ab3a657cdd99b2fdc8de4b (patch) | |
tree | 305a60270feaa8683dd8a1564769c5a0a0447990 | |
parent | ad8d8568b683e6935bec64abe88f79bf31706dd7 (diff) | |
download | cinisis-8c00b2a834fef61639ab3a657cdd99b2fdc8de4b.tar.gz cinisis-8c00b2a834fef61639ab3a657cdd99b2fdc8de4b.tar.bz2 |
Minor fixes
-rw-r--r-- | apps/field.php | 4 | ||||
-rw-r--r-- | apps/repetition.php | 4 | ||||
-rw-r--r-- | apps/subfield.php | 6 | ||||
-rw-r--r-- | classes/IsisFinder.php | 8 |
4 files changed, 11 insertions, 11 deletions
diff --git a/apps/field.php b/apps/field.php index f34bffa..563b2b0 100644 --- a/apps/field.php +++ b/apps/field.php @@ -22,8 +22,8 @@ $isis = new IsisFinder(); // Setup database and entry number. if ($isis) { // Query database. - $field_name = $isis->getFieldName($field); - $result = $isis->nextField($entry, $field_name); + $field_name = $isis->getFieldName($field); + list($entry, $result) = $isis->nextField($entry, $field_name); // Navigation bar. $display->navbar($entry, $isis->entries, $repetition, '&field='. $field); diff --git a/apps/repetition.php b/apps/repetition.php index 6b7f9de..b2f25c9 100644 --- a/apps/repetition.php +++ b/apps/repetition.php @@ -22,8 +22,8 @@ $isis = new IsisFinder(); // Setup database and entry number. if ($isis) { // Query database. - $field_name = $isis->getFieldName($field); - $result = $isis->nextRepetition($entry, $field_name); + $field_name = $isis->getFieldName($field); + list($entry, $result) = $isis->nextRepetition($entry, $field_name); // Navigation bar. $display->navbar($entry, $isis->entries, $repetition, '&field='. $field); diff --git a/apps/subfield.php b/apps/subfield.php index e3d5d75..a4c804a 100644 --- a/apps/subfield.php +++ b/apps/subfield.php @@ -24,9 +24,9 @@ $isis = new IsisFinder(); // Setup database and entry number. if ($isis) { // Query database. - $field_name = $isis->getFieldName($field); - $subfield_name = $isis->getSubfieldName($field, $subfield); - $result = $isis->nextSubfield($entry, $field_name, $subfield_name); + $field_name = $isis->getFieldName($field); + $subfield_name = $isis->getSubfieldName($field, $subfield); + list($entry, $result) = $isis->nextSubfield($entry, $field_name, $subfield_name); // Navigation bar. $display->navbar($entry, $isis->entries, $repetition, '&field='. $field . '&subfield='. $subfield); diff --git a/classes/IsisFinder.php b/classes/IsisFinder.php index 36732b5..80057c1 100644 --- a/classes/IsisFinder.php +++ b/classes/IsisFinder.php @@ -14,7 +14,7 @@ class IsisFinder extends IsisConnector { * Field name. * * @return - * Next repetition. + * Next repetition entry and result. */ public function nextRepetition($entry = 1, $field) { $entry--; @@ -31,7 +31,7 @@ class IsisFinder extends IsisConnector { return FALSE; } - return $result; + return array($entry, $result); } /** @@ -61,7 +61,7 @@ class IsisFinder extends IsisConnector { return FALSE; } - return $result; + return array($entry, $result); } /** @@ -98,6 +98,6 @@ class IsisFinder extends IsisConnector { return FALSE; } - return $result; + return array($entry, $result); } } |