Unify error handling of DatabaseTableIndex with DatabaseTableForeignKey
authorTim Düsterhus <duesterhus@woltlab.com>
Thu, 28 Jul 2022 08:45:37 +0000 (10:45 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Thu, 28 Jul 2022 08:45:37 +0000 (10:45 +0200)
commit592e26cbd81fc7671b3547c4ed2b39103542c0f5
treef090b452a21a914ad90f3c42251325eac320d50a
parent5bc9ebb111a565a1c58c49eb997ce34f713fec77
Unify error handling of DatabaseTableIndex with DatabaseTableForeignKey

This fixes a misleading error message if `->getData()` is called, but no
columns have been set:

> implode(): Argument #1 ($pieces) must be of type array, string given
wcfsetup/install/files/lib/system/database/table/index/DatabaseTableForeignKey.class.php
wcfsetup/install/files/lib/system/database/table/index/DatabaseTableIndex.class.php