Change owner issue fixed

Fixed issue with change owner when using the system with PHP7.2
This commit is contained in:
Manish Verma
2018-09-18 15:24:38 +05:30
committed by Manish Verma
parent 1102f356d7
commit bacb5137da

View File

@@ -2052,8 +2052,7 @@ class TicketController extends Controller
}
}
$user = User::where('email', '=', $email)->first();
$count = count($user);
if ($count === 1) {
if ($user) {
$user_id = $user->id;
$ticket = Tickets::where('id', '=', $id)->first();
if ($user_id === (int) $ticket->user_id) {