aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTristan Darricau <github@darricau.eu>2014-04-17 20:00:06 +0200
committerTristan Darricau <github@nicofuma.fr>2014-05-04 15:44:10 +0200
commit68293450f98b97e7f0bf3d62f5835ae08dbbea09 (patch)
tree39ed1d106b3475e35a76d8cd6cdadd71085f9aed
parent3b823465db93cf525249d00a412d5417b3216b83 (diff)
downloadforums-68293450f98b97e7f0bf3d62f5835ae08dbbea09.tar
forums-68293450f98b97e7f0bf3d62f5835ae08dbbea09.tar.gz
forums-68293450f98b97e7f0bf3d62f5835ae08dbbea09.tar.bz2
forums-68293450f98b97e7f0bf3d62f5835ae08dbbea09.tar.xz
forums-68293450f98b97e7f0bf3d62f5835ae08dbbea09.zip
[ticket/12459] Fix: the posts were always marked as unapproved
the database return a string, so the strict comparison always returned false PHPBB3-12459
-rw-r--r--phpBB/phpbb/feed/post_base.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/phpbb/feed/post_base.php b/phpBB/phpbb/feed/post_base.php
index de98f446f3..cf1b59a090 100644
--- a/phpBB/phpbb/feed/post_base.php
+++ b/phpBB/phpbb/feed/post_base.php
@@ -46,7 +46,7 @@ abstract class post_base extends \phpbb\feed\attachments_base
{
$item_row['statistics'] = $this->user->lang['POSTED'] . ' ' . $this->user->lang['POST_BY_AUTHOR'] . ' ' . $this->user_viewprofile($row)
. ' ' . $this->separator_stats . ' ' . $this->user->format_date($row[$this->get('published')])
- . (($this->is_moderator_approve_forum($row['forum_id']) && $row['post_visibility'] !== ITEM_APPROVED) ? ' ' . $this->separator_stats . ' ' . $this->user->lang['POST_UNAPPROVED'] : '');
+ . (($this->is_moderator_approve_forum($row['forum_id']) && (int)$row['post_visibility'] !== ITEM_APPROVED) ? ' ' . $this->separator_stats . ' ' . $this->user->lang['POST_UNAPPROVED'] : '');
}
}
}