Skip to content

A free open source IT asset/license management system

fixes getExpiringLicenses query

Godfrey Mb98c1a0627af
diff --git a/app/Models/License.php b/app/Models/License.php
index 44f1f45b70..0cec4a7cd4 100755
--- a/app/Models/License.php
+++ b/app/Models/License.php
@@ -668,7 +668,7 @@ class License extends Depreciable
return self::whereNotNull('expiration_date')
->whereNull('deleted_at')
- ->whereRaw(DB::raw('DATE_SUB(`expiration_date`,INTERVAL '.$days.' DAY) <= DATE(NOW()) '))
+ ->whereRaw('DATE_SUB(`expiration_date`,INTERVAL '.$days.' DAY) <= DATE(NOW()) ')
->where('expiration_date', '>', date('Y-m-d'))
->orderBy('expiration_date', 'ASC')
->get();