diff options
author | Silvio <silvio@devlet.com.br> | 2010-04-26 13:45:05 -0300 |
---|---|---|
committer | Silvio <silvio@devlet.com.br> | 2010-04-26 13:45:05 -0300 |
commit | 63a6a68ec94679952a1479530924fb4b50967175 (patch) | |
tree | 032a7a9dd237a1e2acd1c1102d90708e3f638a74 /classes/PhpIsisDb.php | |
parent | 19dbb82b0dabdf972a6d1e2c4fe8781b91deadd4 (diff) | |
download | cinisis-63a6a68ec94679952a1479530924fb4b50967175.tar.gz cinisis-63a6a68ec94679952a1479530924fb4b50967175.tar.bz2 |
Enhancements on check() implementations
Diffstat (limited to 'classes/PhpIsisDb.php')
-rw-r--r-- | classes/PhpIsisDb.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/classes/PhpIsisDb.php b/classes/PhpIsisDb.php index 136b657..1f64075 100644 --- a/classes/PhpIsisDb.php +++ b/classes/PhpIsisDb.php @@ -87,6 +87,13 @@ class PhpIsisDb implements IsisDb { * @see IsisDb::check() */ public 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.'); + return FALSE; + } + + // Check schema configuration. return SchemaDb::check($schema, $section); } |