mirror of
https://github.com/friendica/friendica
synced 2024-12-24 01:20:16 +00:00
Merge pull request #6484 from rabuzarus/20190121_-_fix_Contact_module_profile_searching
bugfix - contact module couldn't update a contact because it couldn't locate the selected profile
This commit is contained in:
commit
4cbfa4aa71
1 changed files with 1 additions and 1 deletions
|
@ -198,7 +198,7 @@ class Contact extends BaseModule
|
||||||
|
|
||||||
$profile_id = intval(defaults($_POST, 'profile-assign', 0));
|
$profile_id = intval(defaults($_POST, 'profile-assign', 0));
|
||||||
if ($profile_id) {
|
if ($profile_id) {
|
||||||
if (!DBA::exists('profile', ['id' => $profile_id, 'uid' => local_user(), 'deleted' => false])) {
|
if (!DBA::exists('profile', ['id' => $profile_id, 'uid' => local_user()])) {
|
||||||
notice(L10n::t('Could not locate selected profile.') . EOL);
|
notice(L10n::t('Could not locate selected profile.') . EOL);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue