Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Throw comprehensive exception in cleanDibiDriverParameters
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Aug 21, 2013
1 parent d717183 commit 57a68ae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/src/core/classes/class.AJXP_Utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -1540,6 +1540,9 @@ public static function cleanDibiDriverParameters($params){
$bootStorage = ConfService::getBootConfStorageImpl();
$configs = $bootStorage->loadPluginConfig("core", "conf");
$params = $configs["DIBI_PRECONFIGURATION"];
if(!is_array($params)){
throw new Exception("Empty SQL default connexion, there is something wrong with your setup! You may have switch to an SQL-based plugin without defining a connexion.");
}
}else{
unset($params["group_switch_value"]);
}
Expand Down

0 comments on commit 57a68ae

Please sign in to comment.