Add $validFormSubmitted
This commit is contained in:
parent
2a6a4ad056
commit
d818822ade
@ -13,6 +13,8 @@ $params = array(
|
||||
"mainColor" => DEFAULT_MAINCOLOR,
|
||||
);
|
||||
|
||||
$validFormSubmitted = false;
|
||||
|
||||
if (
|
||||
isset($_POST['txt'])
|
||||
AND isset($_POST['redondancy'])
|
||||
@ -56,6 +58,8 @@ if (
|
||||
else
|
||||
exit("Wrong value for mainColor");
|
||||
|
||||
$validFormSubmitted = true;
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@ -194,7 +198,7 @@ if (
|
||||
|
||||
<?php
|
||||
|
||||
if (!empty($params['txt'])) {
|
||||
if ($validFormSubmitted) {
|
||||
|
||||
$rgbBgColor = array(
|
||||
'r' => hexdec(substr($params['bgColor'],0,2)),
|
||||
|
Loading…
Reference in New Issue
Block a user