|
@@ -201,13 +201,13 @@
|
|
|
}
|
|
}
|
|
|
$this->quality_name = $this->get_quality_name($this->quality);
|
|
$this->quality_name = $this->get_quality_name($this->quality);
|
|
|
$this->original_quality_name = $this->get_quality_name($this->original_quality);
|
|
$this->original_quality_name = $this->get_quality_name($this->original_quality);
|
|
|
- if ($this->efficiency == null){
|
|
|
|
|
|
|
+ if ($this->efficiency == null || $this->efficiency == "" || intval($this->efficiency) == 0){
|
|
|
$this->efficiency = $this->calculate_efficiency();
|
|
$this->efficiency = $this->calculate_efficiency();
|
|
|
$this->max_efficiency = $this->calculate_maximum_efficiency();
|
|
$this->max_efficiency = $this->calculate_maximum_efficiency();
|
|
|
$statement = $db->prepare("
|
|
$statement = $db->prepare("
|
|
|
UPDATE rune
|
|
UPDATE rune
|
|
|
SET
|
|
SET
|
|
|
- efficiency = :eficiency,
|
|
|
|
|
|
|
+ efficiency = :efficiency,
|
|
|
max_efficiency = :max_efficiency
|
|
max_efficiency = :max_efficiency
|
|
|
WHERE id = :rune
|
|
WHERE id = :rune
|
|
|
");
|
|
");
|
|
@@ -323,7 +323,7 @@
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
for ($i = 1; $i <= 4; $i ++){
|
|
for ($i = 1; $i <= 4; $i ++){
|
|
|
- if ($this->stats[$i] != null && $this->stats[$i]->value > 0){
|
|
|
|
|
|
|
+ if (sizeof($this->stats) > $i && $this->stats[$i] != null && $this->stats[$i]->value > 0){
|
|
|
$value = $this->stats[$i]->value;
|
|
$value = $this->stats[$i]->value;
|
|
|
$value = $this->stats[$i]->value;
|
|
$value = $this->stats[$i]->value;
|
|
|
$statement = $db->prepare($query);
|
|
$statement = $db->prepare($query);
|