diff --git a/hwe/func_gamerule.php b/hwe/func_gamerule.php index 264d85bf..80ec2c3f 100644 --- a/hwe/func_gamerule.php +++ b/hwe/func_gamerule.php @@ -1200,6 +1200,9 @@ function checkEmperior() { $nation = MYDB_fetch_array($result); $count = $db->queryFirstField('SELECT count(city) WHERE nation=%i', $nation['nation']); + if(!$count){ + return; + } $allcount = $db->queryFirstField('SELECT count(city) FROM city'); if ($count != $allcount) {