From 9d2f7578b9b1120785c96bfa58cf7257d4e2d81f Mon Sep 17 00:00:00 2001 From: "Igor Barkov (iwork)" Date: Wed, 22 Jul 2020 12:50:14 +0300 Subject: [PATCH] Notice: Undefined variable: damage --- classes/Item.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/Item.php b/classes/Item.php index 6508cdd..a094461 100644 --- a/classes/Item.php +++ b/classes/Item.php @@ -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; } }