general fixes

+Fixed a bug that didn't permit to counquer an artifact in certain
circumstances with the new automation system
This commit is contained in:
iopietro
2018-05-25 17:45:05 +02:00
parent 8605996533
commit 11c3d44168
3 changed files with 42 additions and 65 deletions
+5 -15
View File
@@ -24,9 +24,7 @@ class Form {
unset($_SESSION['errorarray']);
unset($_SESSION['valuearray']);
}
else {
$this->errorcount = 0;
}
else $this->errorcount = 0;
}
public function addError($field,$error) {
@@ -38,18 +36,14 @@ class Form {
if(array_key_exists($field,$this->errorarray)) {
return $this->errorarray[$field];
}
else {
return "";
}
else return "";
}
public function getValue($field) {
if(array_key_exists($field,$this->valuearray)) {
return $this->valuearray[$field];
}
else {
return "";
}
else return "";
}
public function setValue($field, $value) {
@@ -60,18 +54,14 @@ class Form {
if(array_key_exists($field,$this->valuearray) && $this->valuearray[$field] != $cookie) {
return $this->valuearray[$field];
}
else {
return $cookie;
}
else return $cookie;
}
public function getRadio($field,$value) {
if(array_key_exists($field,$this->valuearray) && $this->valuearray[$field] == $value) {
return "checked";
}
else {
return "";
}
else return "";
}
public function returnErrors() {