Skip to content

Commit

Permalink
Merge pull request #2279 from ChurchCRM/analysis-XNwNG1
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
crossan007 authored Apr 9, 2017
2 parents 3b39663 + d57a774 commit c05021b
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/Include/LoadConfigs.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,13 +135,10 @@ function buildConnectionManagerConfig($sSERVERNAME, $sDATABASE, $sUSER, $sPASSWO
// Log at the desired log level defined by MonoLog's Log Levels.
// **************************************************
$logFile = SystemConfig::getValue("sLogFile");
if (intval(SystemConfig::getValue("sLogLevel")) == 100)
{
$dbClassName = "\\Propel\\Runtime\\Connection\\DebugPDO";
}
else
{
$dbClassName = "\\Propel\\Runtime\\Connection\\PropelPDO";
if (intval(SystemConfig::getValue("sLogLevel")) == 100) {
$dbClassName = "\\Propel\\Runtime\\Connection\\DebugPDO";
} else {
$dbClassName = "\\Propel\\Runtime\\Connection\\PropelPDO";
}
$manager->setConfiguration(buildConnectionManagerConfig($sSERVERNAME, $sDATABASE, $sUSER, $sPASSWORD, $dbClassName));
$logger = new Logger('defaultLogger');
Expand Down

0 comments on commit c05021b

Please sign in to comment.