]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Item.php
Merge pull request #9643 from annando/profiler
[friendica.git] / src / Model / Item.php
index d41e84c5b9f44c5e6ff0b1d61cb15c9d542c56a3..15ea69eeb94df1a40d0c770698a3aef767a3f4d5 100644 (file)
@@ -1568,7 +1568,7 @@ class Item
                        $item['network'] = Protocol::DFRN;
                        $item['protocol'] = Conversation::PARCEL_DIRECT;
 
-                       if (is_int($notify)) {
+                       if (in_array($notify, PRIORITIES)) {
                                $priority = $notify;
                        }
                } else {
@@ -2912,7 +2912,7 @@ class Item
                $_SESSION["authenticated"] = true;
                $_SESSION["uid"] = $contact['uid'];
 
-               return $result;
+               return (bool)$result;
        }
 
        /**