From: Hypolite Petovan Date: Sat, 25 Jun 2022 09:03:02 +0000 (-0400) Subject: Update default value for LocalRelationship->priority to avoid null values X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c75dbfd3d7b78850dfcb1440841c5bef808b21ef;p=friendica.git Update default value for LocalRelationship->priority to avoid null values - Address https://github.com/friendica/friendica/issues/11630#issuecomment-1166192993 --- diff --git a/src/Contact/LocalRelationship/Factory/LocalRelationship.php b/src/Contact/LocalRelationship/Factory/LocalRelationship.php index 74ddd8e7a3..5e53f5b467 100644 --- a/src/Contact/LocalRelationship/Factory/LocalRelationship.php +++ b/src/Contact/LocalRelationship/Factory/LocalRelationship.php @@ -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 ); } }