Bernd Wurst commited on 2013-09-19 06:44:37
Zeige 1 geänderte Dateien mit 3 Einfügungen und 1 Löschungen.
Conflicts: inc/base.php
| ... | ... |
@@@ -35,11 -36,13 +35,13 @@@ function config($key |
| 36 | 35 |
return $config[$key]; |
| 37 | 36 |
|
| 38 | 37 |
/* read configuration from database */ |
| 39 | 38 |
- $options = db_query( "SELECT `key`, value FROM misc.config" ); |
| 40 | 39 |
+ $options = DB::query( "SELECT `key`, value FROM misc.config" ); |
| 41 | 40 |
|
| 42 |
- while( $object = $options->fetch_assoc() ) {
|
|
| 41 |
+ while( $object = mysql_fetch_assoc( $options ) ) {
|
|
| 42 |
+ if (!array_key_exists($object['key'], $config)) {
|
|
| 43 | 43 |
$config[$object['key']]=$object['value']; |
| 44 | 44 |
} |
| 45 |
+ } |
|
| 45 | 46 |
// Sonst wird das Passwort des webadmin-Users mit ausgegeben |
| 46 | 47 |
$debug_config = $config; |
| 47 | 48 |
unset($debug_config['db_pass']); |
| 48 | 49 |