diff options
-rw-r--r-- | classes/BiblioIsisDb.php | 4 | ||||
-rw-r--r-- | classes/PhpIsisDb.php | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/classes/BiblioIsisDb.php b/classes/BiblioIsisDb.php index 36c0bbc..742080d 100644 --- a/classes/BiblioIsisDb.php +++ b/classes/BiblioIsisDb.php @@ -155,7 +155,7 @@ class BiblioIsisDb implements IsisDb { // Key '000' used to hold MFN. if ($key != '000') { if (!isset($this->format['fields'][$key])) { - return; + continue; } $name = $this->format['fields'][$key]['name']; @@ -201,7 +201,7 @@ class BiblioIsisDb implements IsisDb { */ function repetition($field, $value) { if (isset($this->format['fields'][$field]['repeat']) && - $this->format['fields'][$key]['repeat'] == FALSE && is_array($value)) { + $this->format['fields'][$field]['repeat'] == FALSE && is_array($value)) { return $value[0]; } diff --git a/classes/PhpIsisDb.php b/classes/PhpIsisDb.php index 50fdf49..6d39d6e 100644 --- a/classes/PhpIsisDb.php +++ b/classes/PhpIsisDb.php @@ -86,7 +86,7 @@ class PhpIsisDb implements IsisDb { * * @see IsisDb::check() */ - public function check($schema, $section = NULL) { + static function check($schema, $section = NULL) { // Check API availability. if (!function_exists('isis_open')) { throw new Exception('Could not find function isis_open. Please check your php-isis installation.'); |