1
0
Fork 0
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:
Alexey Kachayev 2010-03-12 21:52:31 +00:00
parent e97b63af86
commit 1aa8bc686a

View file

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