From bbb116f29c8b0c487b2b2da82ef06796f7e68514 Mon Sep 17 00:00:00 2001 From: snipe Date: Thu, 9 Jun 2016 12:25:51 -0700 Subject: [PATCH] Fixes #2142 --- app/Console/Commands/Purge.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Console/Commands/Purge.php b/app/Console/Commands/Purge.php index bef0fdf754..24a1ab3d42 100644 --- a/app/Console/Commands/Purge.php +++ b/app/Console/Commands/Purge.php @@ -140,7 +140,7 @@ class Purge extends Command $supplier->forceDelete(); } - $users = User::whereNotNull('deleted_at')->where('show_in_list','=','0')->withTrashed()->get(); + $users = User::whereNotNull('deleted_at')->where('show_in_list','!=','0')->withTrashed()->get(); $this->info($users->count().' users purged.'); $user_assoc = 0; foreach ($users as $user) {