Skip to content

Commit

Permalink
! Contact hiding was broken. For once, it wasn't a last-minute change…
Browse files Browse the repository at this point in the history
…, but instead a change followed by a couple of days of not testing the feature. (Profile-Modify.php)
  • Loading branch information
Nao committed Jul 6, 2014
1 parent 9247a50 commit 4152e82
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions core/app/Profile-Modify.php
Expand Up @@ -1581,12 +1581,23 @@ function editContactList($memID)
return_raw(isset($_GET['name']) ? generic_contacts($target) : $target);
}

wesql::query('
UPDATE {db_prefix}contacts
SET hidden = !hidden
WHERE id_member = {int:user}
AND id_list = {int:list}' . ($canChangeOther ? '' : '
AND id_owner = {int:me}'),
array(
'user' => $data[1],
'list' => $data[0],
'me' => $memID,
)
);
$request = wesql::query('
SELECT hidden
FROM {db_prefix}contacts
WHERE id_member = {int:user}
AND id_list = {int:list}' . ($canChangeOther ? '' : '
AND id_owner = {int:me}'),
AND id_list = {int:list}',
array(
'user' => $data[1],
'list' => $data[0],
Expand Down

0 comments on commit 4152e82

Please sign in to comment.