diff --git a/web/skins/classic/views/options.php b/web/skins/classic/views/options.php index aafeaacb7..00e59c85b 100644 --- a/web/skins/classic/views/options.php +++ b/web/skins/classic/views/options.php @@ -295,6 +295,22 @@ foreach ( array_map('basename', glob('skins/'.$current_skin.'/css/*',GLOB_ONLYDI query('SELECT * FROM Config ORDER BY Id ASC'); + if ( !$result ) + echo mysql_error(); + while( $row = dbFetchNext($result) ) { + $config[$row['Name']] = $row; + if ( !($configCat = &$configCats[$row['Category']]) ) { + $configCats[$row['Category']] = array(); + $configCat = &$configCats[$row['Category']]; + } + $configCat[$row['Name']] = $row; + } + if ( $tab == 'system' ) { $configCats[$tab]['ZM_LANG_DEFAULT']['Hint'] = join( '|', getLanguages() ); $configCats[$tab]['ZM_SKIN_DEFAULT']['Hint'] = join( '|', $skin_options );