aboutsummaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorSilvio <silvio@devlet.com.br>2010-05-12 12:08:43 -0300
committerSilvio <silvio@devlet.com.br>2010-05-12 12:08:43 -0300
commit8b085bb0183d24c723ffbda9723b26ab0a1b4a16 (patch)
treea5f3afc4ff3745dbe6b3e273ff96302fac3219d0 /classes
parent5e842b0327e60fae0901b793f76c9be4ec6399cb (diff)
downloadcinisis-8b085bb0183d24c723ffbda9723b26ab0a1b4a16.tar.gz
cinisis-8b085bb0183d24c723ffbda9723b26ab0a1b4a16.tar.bz2
Filtering empty results on BiblioIsis and on CSV export
Diffstat (limited to 'classes')
-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;
+ }
}
/**