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

@@ -650,7 +650,7 @@ if (count($available_themes_choices)>1) {
<?php
for($i=0;$i<count($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"';
$theme_selected = TRUE;
}