From 73731fa698fd658985cabeb202f3e6218931641f Mon Sep 17 00:00:00 2001 From: Silvio Date: Fri, 13 Aug 2010 14:45:18 -0300 Subject: Minor fix --- classes/IsisConnector.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'classes') 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])) { -- cgit v1.2.3