| @@ 112-118 (lines=7) @@ | ||
| 109 | error_log('Prerequisites are OK'); |
|
| 110 | } |
|
| 111 | ||
| 112 | if (isset($max) && $max != -1) { |
|
| 113 | $myLPI->max_score = $max; |
|
| 114 | $myLPI->set_max_score($max); |
|
| 115 | if ($debug > 1) { |
|
| 116 | error_log("Setting max_score: $max"); |
|
| 117 | } |
|
| 118 | } |
|
| 119 | ||
| 120 | if (isset($min) && $min != -1 && $min != 'undefined') { |
|
| 121 | $myLPI->min_score = $min; |
|
| @@ 120-125 (lines=6) @@ | ||
| 117 | } |
|
| 118 | } |
|
| 119 | ||
| 120 | if (isset($min) && $min != -1 && $min != 'undefined') { |
|
| 121 | $myLPI->min_score = $min; |
|
| 122 | if ($debug > 1) { |
|
| 123 | error_log("Setting min_score: $min"); |
|
| 124 | } |
|
| 125 | } |
|
| 126 | ||
| 127 | // set_score function used to save the status, but this is not the case anymore |
|
| 128 | if (isset($score) && $score != -1) { |
|