From e28c61a1f8fc83a0bf92866dad0509a3f71d45dd Mon Sep 17 00:00:00 2001 From: Silvio Date: Mon, 7 Jun 2010 18:06:27 -0300 Subject: Minor fixes --- classes/BiblioIsisDb.php | 4 ++-- 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.'); -- cgit v1.2.3