aboutsummaryrefslogtreecommitdiff
path: root/classes/BiblioIsisDb.php
diff options
context:
space:
mode:
authorSilvio <silvio@devlet.com.br>2010-04-26 13:45:05 -0300
committerSilvio <silvio@devlet.com.br>2010-04-26 13:45:05 -0300
commit63a6a68ec94679952a1479530924fb4b50967175 (patch)
tree032a7a9dd237a1e2acd1c1102d90708e3f638a74 /classes/BiblioIsisDb.php
parent19dbb82b0dabdf972a6d1e2c4fe8781b91deadd4 (diff)
downloadcinisis-63a6a68ec94679952a1479530924fb4b50967175.tar.gz
cinisis-63a6a68ec94679952a1479530924fb4b50967175.tar.bz2
Enhancements on check() implementations
Diffstat (limited to 'classes/BiblioIsisDb.php')
-rw-r--r--classes/BiblioIsisDb.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/classes/BiblioIsisDb.php b/classes/BiblioIsisDb.php
index 616cc77..d7fdd1c 100644
--- a/classes/BiblioIsisDb.php
+++ b/classes/BiblioIsisDb.php
@@ -118,6 +118,13 @@ class BiblioIsisDb implements IsisDb {
* @see IsisDb::check()
*/
public function check($schema, $section = NULL) {
+ // Check API availability.
+ if (!class_exists('Perl')) {
+ throw new Exception('Could not find Perl class. Please check your php-perl installation.');
+ return FALSE;
+ }
+
+ // Check schema configuration.
return SchemaDb::check($schema, $section);
}