diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2024-06-14 20:24:52 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2024-06-14 20:24:52 +0200 |
commit | 7df701b43467ee4a4cb5039be84d8da172a198d7 (patch) | |
tree | 10e57c6b51eeff192574526efeb5d44cd3c61882 | |
parent | d7607906430242d45fd1526abd7c2cdc7b49990f (diff) | |
download | volse-hubzilla-7df701b43467ee4a4cb5039be84d8da172a198d7.tar.gz volse-hubzilla-7df701b43467ee4a4cb5039be84d8da172a198d7.tar.bz2 volse-hubzilla-7df701b43467ee4a4cb5039be84d8da172a198d7.zip |
Use empty() to check if array entry exist in create_identity.
-rw-r--r-- | include/channel.php | 4 |
1 files 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']); |