Revision a34bab9f
Added by Steve Beaver about 7 years ago
src/usr/local/www/wizard.php | ||
---|---|---|
176 | 176 |
$text = "unset(\$config" . $field_conv . ");"; |
177 | 177 |
eval($text); |
178 | 178 |
} |
179 |
$text .= "\$thisvar = &\$config" . $field_conv . ";"; |
|
180 |
eval($text); |
|
179 |
|
|
180 |
// Verify that the needed $config element exists |
|
181 |
$text = 'return (isset($config' . $field_conv . '));'; |
|
182 |
file_put_contents("/tmp/wizard.dbg", $text . "\n", FILE_APPEND); |
|
183 |
|
|
184 |
if (eval($text)) { |
|
185 |
$text .= "\$thisvar = &\$config" . $field_conv . ";"; |
|
186 |
eval($text); |
|
187 |
} |
|
188 |
|
|
181 | 189 |
$thisvar = $updatetext; |
182 | 190 |
} |
183 | 191 |
|
Also available in: Unified diff
Fixed #8803
Don't attempt to access $config elements that don't exist. PHP7 doesn't like it