forget the updates to this file

pull/236/head
Isaac Connor 2013-10-17 16:57:05 -04:00
parent 2a45506bff
commit 09fbdc9e35
1 changed files with 3 additions and 3 deletions

View File

@ -145,16 +145,16 @@ function loadConfig( $defineConsts=true )
{ {
global $config; global $config;
global $configCats; global $configCats;
global $dbConn;
$config = array(); $config = array();
$configCat = array(); $configCat = array();
$sql = "select * from Config order by Id asc"; $result = $dbConn->query( 'select * from Config order by Id asc' );
$result = mysql_query( $sql );
if ( !$result ) if ( !$result )
echo mysql_error(); echo mysql_error();
$monitors = array(); $monitors = array();
while( $row = mysql_fetch_assoc( $result ) ) while( $row = dbFetchNext( $result ) )
{ {
if ( $defineConsts ) if ( $defineConsts )
define( $row['Name'], $row['Value'] ); define( $row['Name'], $row['Value'] );