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:
parent
a574687253
commit
9c32bf2328
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user