mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-03 11:04:24 +00:00
Remove some unused code and some fix
Remove some unused code and some fix
This commit is contained in:
@@ -146,7 +146,7 @@ class adm_DB {
|
||||
$dataarray = $$name;
|
||||
|
||||
for ($i = 1; $i <= $lvl; $i++) {
|
||||
$popT += $dataarray[$i]['pop'];
|
||||
$popT += $dataarray[$i]['pop'] ?? 0;
|
||||
}
|
||||
return $popT;
|
||||
}
|
||||
@@ -158,7 +158,7 @@ class adm_DB {
|
||||
$dataarray = $$name;
|
||||
|
||||
for ($i = 1; $i <= $lvl; $i++) {
|
||||
$popT += $dataarray[$i]['cp'];
|
||||
$popT += $dataarray[$i]['cp'] ?? 0;
|
||||
}
|
||||
return $popT;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user