Notice: Undefined variable: damage

This commit is contained in:
Igor Barkov (iwork) 2020-07-22 12:50:14 +03:00
parent 402da8a185
commit 9d2f7578b9

View File

@ -155,7 +155,7 @@ IMG;
} elseif ($this->add_min_physical_damage && $this->add_max_physical_damage) {
$damage = $this->add_min_physical_damage . " - " . $this->add_max_physical_damage;
}
if ($damage) {
if (isset($damage)) {
echo "Урон: " . $damage;
}
}