diff options
author | Silvio <silvio@devlet.com.br> | 2010-06-07 18:06:27 -0300 |
---|---|---|
committer | Silvio <silvio@devlet.com.br> | 2010-06-07 18:06:27 -0300 |
commit | e28c61a1f8fc83a0bf92866dad0509a3f71d45dd (patch) | |
tree | 813c181e76635f02118c0c457d7bab743f009391 | |
parent | 0f3203c9c25b2c936ba8ebdf2fd2548209213620 (diff) | |
download | cinisis-e28c61a1f8fc83a0bf92866dad0509a3f71d45dd.tar.gz cinisis-e28c61a1f8fc83a0bf92866dad0509a3f71d45dd.tar.bz2 |
Minor fixes
-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.'); |