Skip to content

Commit

Permalink
Handle missing fac_Config table at install time
Browse files Browse the repository at this point in the history
  • Loading branch information
hawson committed Oct 9, 2013
1 parent 2293da9 commit 1a4dbcf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions config.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ function Config(){

//Get parameter value pairs from fac_Config
$sql='select Parameter, Value, DefaultVal from fac_Config';

foreach ($dbh->query( $sql ) as $row){
$sth=$dbh->prepare($sql);
$sth->execute();
while ($row = $sth->fetch()) {
if ($row['Parameter']== 'ClassList'){
$List = explode(', ', $row['Value']);
$this->ParameterArray[$row['Parameter']]=$List;
Expand Down

0 comments on commit 1a4dbcf

Please sign in to comment.