mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user