From 26e081a2cbd90b2a4c3443a8b60c8e86c0daab41 Mon Sep 17 00:00:00 2001 From: snipe Date: Mon, 27 Jul 2015 15:26:53 -0700 Subject: [PATCH] Fixes #909 again, because math is super hard --- app/models/License.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/License.php b/app/models/License.php index 44b49ed107..3a55253d66 100755 --- a/app/models/License.php +++ b/app/models/License.php @@ -171,7 +171,7 @@ public function freeSeat() return License::whereNotNull('expiration_date') ->whereNull('deleted_at') ->whereRaw(DB::raw( 'DATE_SUB(`expiration_date`,INTERVAL '.$days.' DAY) <= DATE(NOW()) ' )) - ->where('expiration_date','<',date("Y-m-d")) + ->where('expiration_date','>',date("Y-m-d")) ->orderBy('expiration_date', 'ASC') ->get();