Check strings against '' instead of using empty when validating in DBO actions
authorTim Düsterhus <duesterhus@woltlab.com>
Thu, 2 Jul 2020 14:32:12 +0000 (16:32 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Thu, 2 Jul 2020 14:33:43 +0000 (16:33 +0200)
commit0db33547432fbdfe5d4292f556df94c444b34806
treef9840625c5edba8da03046d8981c7a9aac356a8b
parentcdb994ab65d3d95f866fd2458f9cd79ee38a89d5
Check strings against '' instead of using empty when validating in DBO actions

`empty('0')` will return true, despite the string not actually being empty
which is undesired.

Fixes WoltLab/com.woltlab.wbb#387
wcfsetup/install/files/lib/data/AbstractDatabaseObjectAction.class.php