Misc/Fixup

* test arrays first before use, not the other way round
 * do not try to init local arena team entries if there are no entries in list.
 * fix equally distributing chars/guilds/arenateams across realms for unlimited (0) lists
 * fix double declaration of realms in ArenateamList
This commit is contained in:
Sarjuuk
2025-06-03 16:00:02 +02:00
parent ee02e70571
commit c3048fe1f8
4 changed files with 32 additions and 28 deletions

View File

@@ -829,14 +829,14 @@ abstract class Util
public static function createSqlBatchInsert(array $data) : array
{
if (!count($data) || !is_array(reset($data)))
return [];
$nRows = 100;
$nItems = count(reset($data));
$result = [];
$buff = [];
if (!count($data))
return [];
foreach ($data as $d)
{
if (count($d) != $nItems)