From 3290ccc779ff70e9a8fb17d438eba9cd6e2f10dc Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 14 Aug 2017 21:46:58 +0000 Subject: [PATCH] Now some more stuff is fixed --- include/identity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/identity.php b/include/identity.php index 7ce18309bd..34c0413df0 100644 --- a/include/identity.php +++ b/include/identity.php @@ -49,7 +49,7 @@ function profile_load(App $a, $nickname, $profile = 0, $profiledata = array()) { $pdata = get_profiledata_by_nick($nickname, $user[0]['uid'], $profile); - if (($pdata === false) || (!count($pdata)) && !count($profiledata)) { + if (empty($pdata) && empty($profiledata)) { logger('profile error: ' . $a->query_string, LOGGER_DEBUG); notice( t('Requested profile is not available.') . EOL ); $a->error = 404;