diff options
Diffstat (limited to 'classes/MaleteDb.php')
-rw-r--r-- | classes/MaleteDb.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/classes/MaleteDb.php b/classes/MaleteDb.php index 7fa0afa..201ddc0 100644 --- a/classes/MaleteDb.php +++ b/classes/MaleteDb.php @@ -98,6 +98,13 @@ class MaleteDb implements IsisDb { * @see IsisDb::check() */ public function check($schema, $section = NULL) { + // Check API availability. + if (!class_exists('Isis_Db')) { + throw new Exception('Could not find Isis_Db class. Please check your malete installation.'); + return FALSE; + } + + // Check schema configuration. return SchemaDb::check($schema, $section); } |