Possible undefined variable.

This commit is contained in:
Michal Čihař
2004-06-15 10:45:06 +00:00
parent 092769a727
commit 5ed8e1ef44
2 changed files with 2 additions and 1 deletions

View File

@@ -10,6 +10,7 @@ $Source$
* config.inc.php, libraries/common.lib.php, * config.inc.php, libraries/common.lib.php,
libraries/config_import.lib.php: Support for SHA1 function (RFE libraries/config_import.lib.php: Support for SHA1 function (RFE
#971703). #971703).
* main.php: Possible undefined variable.
2004-06-09 Alexander M. Turek <me@derrabus.de> 2004-06-09 Alexander M. Turek <me@derrabus.de>
* libraries/config_import.lib.php: The default settings should be merged. * libraries/config_import.lib.php: The default settings should be merged.

View File

@@ -650,7 +650,7 @@ if (count($available_themes_choices)>1) {
<?php <?php
for($i=0;$i<count($available_themes_choices);$i++){ for($i=0;$i<count($available_themes_choices);$i++){
echo '<option value="' . $available_themes_choices[$i] . '"'; echo '<option value="' . $available_themes_choices[$i] . '"';
if ($available_themes_choices[$i] == $theme) { if (isset($theme) && $available_themes_choices[$i] == $theme) {
echo ' selected="selected"'; echo ' selected="selected"';
$theme_selected = TRUE; $theme_selected = TRUE;
} }