]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Conversation.php
Add support for legacy $lang config in App->loadConfig
[friendica.git] / src / Model / Conversation.php
index 17f151fe03ba9cb771bb501c14ef8828620c5e40..69bbc3bb6dd4b4718d03ac51ebad98d3b497d8fd 100644 (file)
@@ -61,7 +61,7 @@ class Conversation
                                        unset($old_conv['source']);
                                }
                                // Update structure data all the time but the source only when its from a better protocol.
-                               if (($old_conv['protocol'] < $conversation['protocol']) && ($old_conv['protocol'] != 0)) {
+                               if (isset($conversation['protocol']) && isset($conversation['source']) && ($old_conv['protocol'] < $conversation['protocol']) && ($old_conv['protocol'] != 0)) {
                                        unset($conversation['protocol']);
                                        unset($conversation['source']);
                                }