]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Conversation.php
Fix warning
[friendica.git] / src / Model / Conversation.php
index 159cd2f20f23a221e3eedc862f0a05439291f5c3..06d3ba536d0567544af65558a85dc74d14eb47f3 100644 (file)
@@ -10,8 +10,6 @@ use Friendica\Core\Protocol;
 use Friendica\Database\DBA;
 use Friendica\Util\DateTimeFormat;
 
-require_once "include/dba.php";
-
 class Conversation
 {
        /*
@@ -37,6 +35,7 @@ class Conversation
         *
         * @param array $arr Item array with conversation data
         * @return array Item array with removed conversation data
+        * @throws \Exception
         */
        public static function insert(array $arr)
        {
@@ -78,7 +77,7 @@ class Conversation
                                }
                                // Update structure data all the time but the source only when its from a better protocol.
                                if (empty($conversation['source']) || (!empty($old_conv['source']) &&
-                                       ($old_conv['protocol'] < defaults($conversation, 'protocol', PARCEL_UNKNOWN)))) {
+                                       ($old_conv['protocol'] < defaults($conversation, 'protocol', self::PARCEL_UNKNOWN)))) {
                                        unset($conversation['protocol']);
                                        unset($conversation['source']);
                                }