Change owner issue fixed
Fixed issue with change owner when using the system with PHP7.2
This commit is contained in:

committed by
Manish Verma

parent
1102f356d7
commit
bacb5137da
@@ -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) {
|
||||
|
Reference in New Issue
Block a user