]> git.mxchange.org Git - friendica.git/commitdiff
Update default value for LocalRelationship->priority to avoid null values
authorHypolite Petovan <hypolite@mrpetovan.com>
Sat, 25 Jun 2022 09:03:02 +0000 (05:03 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sat, 25 Jun 2022 09:06:22 +0000 (05:06 -0400)
- Address https://github.com/friendica/friendica/issues/11630#issuecomment-1166192993

src/Contact/LocalRelationship/Factory/LocalRelationship.php

index 74ddd8e7a39f621f34962cf6c3816cf84b206332..5e53f5b4675dfe7c7bd8feb03cc9ff9d64f2b371 100644 (file)
@@ -52,7 +52,7 @@ class LocalRelationship extends BaseFactory implements ICanCreateFromTableRow
                        $row['hub-verify'] ?? '',
                        $row['protocol'] ?? Protocol::PHANTOM,
                        $row['rating'] ?? null,
-                       $row['priority'] ?? null
+                       $row['priority'] ?? 0
                );
        }
 }