aboutsummaryrefslogtreecommitdiff
path: root/classes/BiblioIsisDb.php
diff options
context:
space:
mode:
Diffstat (limited to 'classes/BiblioIsisDb.php')
-rw-r--r--classes/BiblioIsisDb.php14
1 files changed, 8 insertions, 6 deletions
diff --git a/classes/BiblioIsisDb.php b/classes/BiblioIsisDb.php
index 81db3e7..e902a93 100644
--- a/classes/BiblioIsisDb.php
+++ b/classes/BiblioIsisDb.php
@@ -87,14 +87,16 @@ class BiblioIsisDb implements IsisDb {
// Database query.
$results = $this->backend('to_hash', $id);
- // Tag results.
- $data = $this->tag($results);
+ if ($results) {
+ // Tag results.
+ $data = $this->tag($results);
- // Charset conversion.
- array_walk_recursive($data, array(__CLASS__, 'charset'));
+ // Charset conversion.
+ array_walk_recursive($data, array(__CLASS__, 'charset'));
- // Return the result.
- return $data;
+ // Return the result.
+ return $data;
+ }
}
/**