diff options
Diffstat (limited to 'classes/IsisConnector.php')
-rw-r--r-- | classes/IsisConnector.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/classes/IsisConnector.php b/classes/IsisConnector.php index e845683..c104bc1 100644 --- a/classes/IsisConnector.php +++ b/classes/IsisConnector.php @@ -165,10 +165,16 @@ class IsisConnector { */ public function getSubfield($field, $subfield, $row = 0) { if ($this->joinSubfields()) { - $subfields = $this->result[$field['name']][$row]; + if (isset($this->result[$field['name']][$row])) + { + $subfields = $this->result[$field['name']][$row]; + } } else { - $subfields = $this->result[$field['name']][$row]['subfields']; + if (isset($this->result[$field['name']][$row]['subfields'])) + { + $subfields = $this->result[$field['name']][$row]['subfields']; + } } if (isset($subfields[$subfield])) { |