DatabaseObjectList::seekTo() lead to an error if the list was empty
authorMarcel Werk <burntime@woltlab.com>
Thu, 15 Sep 2022 11:00:48 +0000 (13:00 +0200)
committerMarcel Werk <burntime@woltlab.com>
Thu, 15 Sep 2022 11:00:48 +0000 (13:00 +0200)
wcfsetup/install/files/lib/data/DatabaseObjectList.class.php

index 5c67aa4632986df6011d491c2dc9c9e29cb7f629..f1078802720f0494ffbfcf315f8c6a73d7fb9aa6 100644 (file)
@@ -105,7 +105,7 @@ abstract class DatabaseObjectList implements \Countable, ITraversableObject
      * list of index to object relation
      * @var int[]
      */
-    protected $indexToObject;
+    protected $indexToObject = [];
 
     /**
      * Creates a new DatabaseObjectList object.