mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-06-17 07:10:48 +03:00
Fix topic favourites mapping
This commit is contained in:
parent
e97b63af86
commit
1aa8bc686a
|
@ -133,7 +133,7 @@ class Mapper_Favourite extends Mapper {
|
|||
AND
|
||||
target_type = ?
|
||||
{ AND target_id NOT IN (?a) }
|
||||
;";
|
||||
;";
|
||||
return ( $aRow=$this->oDb->selectRow(
|
||||
$sql,$sUserId,
|
||||
$sTargetType,
|
||||
|
@ -221,7 +221,7 @@ class Mapper_Favourite extends Mapper {
|
|||
AND
|
||||
f.target_publish = 1
|
||||
AND
|
||||
f.target_type = 'comment'
|
||||
f.target_type = 'topic'
|
||||
AND
|
||||
f.target_id = t.topic_id
|
||||
AND
|
||||
|
@ -255,7 +255,7 @@ class Mapper_Favourite extends Mapper {
|
|||
AND
|
||||
f.target_publish = 1
|
||||
AND
|
||||
f.target_type = 'comment'
|
||||
f.target_type = 'topic'
|
||||
AND
|
||||
f.target_id = t.topic_id
|
||||
AND
|
||||
|
|
Loading…
Reference in a new issue