diff --git a/hwe/a_history.php b/hwe/a_history.php
index a9279709..829e49c1 100644
--- a/hwe/a_history.php
+++ b/hwe/a_history.php
@@ -160,8 +160,8 @@ var nations = =$nations?$history['nations']:'{}'?>;
| ;background-color:=$nation['color']?>'>=$nation['name']?> |
=number_format($nation['power'])?> |
- =number_format(count($nation['generals']))?> |
- =number_format(count($nation['cities']))?> |
+ =number_format(count($nation['generals']??[]))?> |
+ =number_format(count($nation['cities']??[]))?> |