From 7df701b43467ee4a4cb5039be84d8da172a198d7 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Fri, 14 Jun 2024 20:24:52 +0200 Subject: Use empty() to check if array entry exist in create_identity. --- include/channel.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/channel.php b/include/channel.php index 568ad052a..22b5bcde1 100644 --- a/include/channel.php +++ b/include/channel.php @@ -199,8 +199,8 @@ function create_identity($arr) { $ret = array('success' => false); - if(! $arr['account_id']) { - $ret['message'] = t('No account identifier'); + if(empty($arr['account_id'])) { + $ret['message'] = t('No account identifier'); return $ret; } $ret = identity_check_service_class($arr['account_id']); -- cgit v1.2.3