Now some more stuff is fixed

This commit is contained in:
Michael 2017-08-14 21:46:58 +00:00
parent 4f6f47f714
commit 3290ccc779
1 changed files with 1 additions and 1 deletions

View File

@ -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;