From 7ac1d11dfc55831b853b865ad5e6961c25a0e574 Mon Sep 17 00:00:00 2001 From: Kirill Solomko Date: Thu, 8 May 2025 14:56:18 +0200 Subject: [PATCH] MT#62705 fix get_peer_auth_params() $rs * fix $rs check expression to check for both undef and $rs->value as otherwise it fails when $type is neither 'subscirbers' nor 'peerings' Change-Id: I59e2c445416d5107a4aa207a9f16552d806df54d (cherry picked from commit 8037316fe49afc91e58f05256591c15d36180458) (cherry picked from commit ae849e3595bfb194eee4a21f668cba3b9f228bce) --- lib/NGCP/Panel/Utils/Preferences.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/NGCP/Panel/Utils/Preferences.pm b/lib/NGCP/Panel/Utils/Preferences.pm index 474e12e67f..50a83fbc9b 100644 --- a/lib/NGCP/Panel/Utils/Preferences.pm +++ b/lib/NGCP/Panel/Utils/Preferences.pm @@ -2768,7 +2768,7 @@ sub get_peer_auth_params { peer_host => $prov_object ); } - $prefs->{$attribute} = $rs->first ? $rs->first->value : undef; + $prefs->{$attribute} = $rs && $rs->first ? $rs->first->value : undef; } }