Fix Calc
This commit is contained in:
parent
d75bed7a65
commit
c13545527f
@ -85,7 +85,11 @@ class Calc
|
||||
if($collection->getName() == "opt") continue;
|
||||
if($collection->getFormel() != "") {
|
||||
$formel = $this->formelCalc->parse($collection->getFormel());
|
||||
if(preg_match("/^[a-z](.*)/", $formel)) {
|
||||
eval('$var = "' . $formel . '";');
|
||||
}else{
|
||||
eval('$var = ' . $formel . ';');
|
||||
}
|
||||
}else{
|
||||
if(!isset($this->engine->getVariables()[$collection->getName()])) {
|
||||
$var = 'XXXXXXXXXXXX';
|
||||
|
||||
@ -90,7 +90,12 @@ class CalcValues
|
||||
if($collection->getName() == "opt") continue;
|
||||
if($collection->getFormel() != "") {
|
||||
$formel = $this->formelCalc->parse($collection->getFormel());
|
||||
if(preg_match("/^[a-z](.*)/", $formel)) {
|
||||
eval('$var = "' . $formel . '";');
|
||||
}else{
|
||||
eval('$var = ' . $formel . ';');
|
||||
}
|
||||
|
||||
}else{
|
||||
if(!isset($this->engine->getVariables()[$collection->getName()])) {
|
||||
$var = 'XXXXXXXX';
|
||||
|
||||
@ -693,10 +693,10 @@ if(!function_exists('getSammelformMengenAbschlagPlano')) {
|
||||
function getMaschine($breite, $hoehe) {
|
||||
if($breite > 49 || $hoehe > 49) {
|
||||
|
||||
return '"kba"';
|
||||
return 'kba';
|
||||
}
|
||||
|
||||
return '"gto"';
|
||||
return 'gto';
|
||||
}
|
||||
|
||||
function getGeiferRand($format) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user