Skip to content

Commit

Permalink
Fix a stupid error in the scheduled task for recounting mentions
Browse files Browse the repository at this point in the history
Signed-off-by: emanuele <emanuele45@gmail.com>
  • Loading branch information
emanuele45 committed Jun 25, 2014
1 parent 2b8da55 commit 98c04c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sources/subs/ScheduledTask.class.php
Expand Up @@ -1529,7 +1529,7 @@ public function user_access_mentions()
$user_see_board = memberQuerySeeBoard($row['id_member']);

// Find out if this user cannot see something that was supposed to be able to see
$request = $db->query('', '
$request2 = $db->query('', '
SELECT mnt.id_mention
FROM {db_prefix}log_mentions as mnt
LEFT JOIN {db_prefix}messages AS m ON (m.id_msg = mnt.id_msg)
Expand All @@ -1546,7 +1546,7 @@ public function user_access_mentions()
)
);
// One row of results is enough: scheduleTaskImmediate!
if ($db->num_rows($request) == 1)
if ($db->num_rows($request2) == 1)
{
if (!empty($modSettings['user_access_mentions']))
$modSettings['user_access_mentions'] = @unserialize($modSettings['user_access_mentions']);
Expand Down

0 comments on commit 98c04c9

Please sign in to comment.