1
0
mirror of https://github.com/freescout-helpdesk/freescout.git synced 2024-11-24 11:22:42 +01:00

Fix error on PostgreSQL in RealtimeMailboxNewThread - closes #731

This commit is contained in:
FreeScout 2020-09-12 09:31:38 -07:00
parent a574687253
commit 9c32bf2328

View File

@ -88,7 +88,11 @@ class RealtimeMailboxNewThread implements ShouldBroadcastNow
return [];
}
$folder = Folder::find(Conversation::getFolderParam());
$folder = null;
$foler_id = Conversation::getFolderParam();
if ($foler_id) {
$folder = Folder::find($foler_id);
}
// Just in case.
if (!$folder) {
$folder = new Folder();