From 42987d96e3caa0c3171bc0933ec175ee437935f2 Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Sun, 13 Sep 2015 19:22:26 -0600 Subject: [PATCH] switched out logical operator --- system/src/Grav/Console/Cli/NewUserCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/src/Grav/Console/Cli/NewUserCommand.php b/system/src/Grav/Console/Cli/NewUserCommand.php index 82be0d802..a26be6f1d 100644 --- a/system/src/Grav/Console/Cli/NewUserCommand.php +++ b/system/src/Grav/Console/Cli/NewUserCommand.php @@ -117,7 +117,7 @@ class NewUserCommand extends Command // Get fullname $question = new Question('Enter a fullname: '); $question->setValidator(function ($value) { - if ($value === null or trim($value) == '') { + if ($value === null || trim($value) == '') { throw new RuntimeException( 'Fullname is required' );