mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[feature/soft-delete] Fix set_topic_visibility() so it passes the tests
PHPBB3-9567
This commit is contained in:
parent
b9d363f6cc
commit
526721c7db
1 changed files with 2 additions and 2 deletions
|
@ -156,12 +156,12 @@ class phpbb_content_visibility
|
|||
{
|
||||
global $db;
|
||||
|
||||
if (in_array($visibility, array(ITEM_APPROVED, ITEM_DELETED)))
|
||||
if (!in_array($visibility, array(ITEM_APPROVED, ITEM_DELETED)))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (!$force_update_all && $visibility == ITEM_APPROVED)
|
||||
if (!$force_update_all)
|
||||
{
|
||||
$sql = 'SELECT topic_visibility, topic_delete_time
|
||||
FROM ' . TOPICS_TABLE . '
|
||||
|
|
Loading…
Add table
Reference in a new issue