1
0
mirror of https://github.com/flarum/core.git synced 2025-07-31 13:40:20 +02:00

Better check for user property in command validators

This commit is contained in:
Toby Zerner
2015-02-16 14:48:10 +10:30
parent c03d8b96b8
commit 7ba59fc9a4

View File

@@ -17,7 +17,7 @@ class CommandValidator
public function validate($command)
{
if (! $command->user) {
if (empty($command->user)) {
throw new InvalidArgumentException('Empty argument [user] in command ['.get_class($command).']');
}