|
From: OryNider <ory...@us...> - 2008-03-15 17:01:29
|
Update of /cvsroot/mxbb/mx_mod_core/root/mx_mod/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv31198 Modified Files: functions_core.php Log Message: get_mxbb_config fix for the new config table Index: functions_core.php =================================================================== RCS file: /cvsroot/mxbb/mx_mod_core/root/mx_mod/includes/functions_core.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** functions_core.php 14 Mar 2008 13:33:21 -0000 1.2 --- functions_core.php 15 Mar 2008 16:38:51 -0000 1.3 *************** *** 112,118 **** else { ! $sql = "SELECT * ! FROM " . MX_CONFIG_TABLE . " ! WHERE portal_id = '1'"; if ( !( $result = @$db->sql_query( $sql ) ) ) --- 112,116 ---- else { ! $sql = "SELECT * FROM " . MX_CONFIG_TABLE; if ( !( $result = @$db->sql_query( $sql ) ) ) *************** *** 157,170 **** else { ! $row = @$db->sql_fetchrow( $result ); ! foreach ( $row as $config_name => $config_value ) { ! $config[$config_name] = trim( $config_value ); } } - @$db->sql_freeresult( $result ); $this->put('mxbb_config', $config); ! return ( $config ); } } --- 155,167 ---- else { ! while ($row = @$db->sql_fetchrow($result)) { ! $config[$row['config_name']] = $row['config_value']; } + @$db->sql_freeresult($result); } $this->put('mxbb_config', $config); ! return ($config); } } |