Bernd Wurst commited on 2013-09-26 08:35:24
              Zeige 1 geänderte Dateien mit 1 Einfügungen und 1 Löschungen.
            
| ... | ... | 
                      @@ -37,7 +37,7 @@ function config($key)  | 
                  
| 37 | 37 | 
                        /* read configuration from database */  | 
                    
| 38 | 38 | 
                        $options = DB::query( "SELECT `key`, value FROM misc.config" );  | 
                    
| 39 | 39 | 
                         | 
                    
| 40 | 
                        -  while( $object = mysql_fetch_assoc( $options ) ) {
                       | 
                    |
| 40 | 
                        +  while( $object = $options->fetch_assoc() ) {
                       | 
                    |
| 41 | 41 | 
                             if (!array_key_exists($object['key'], $config)) {
                       | 
                    
| 42 | 42 | 
                        $config[$object['key']]=$object['value'];  | 
                    
| 43 | 43 | 
                        }  | 
                    
| 44 | 44 |