diff --git a/inc/display.php b/inc/display.php index d595e5d0..eb766bdb 100644 --- a/inc/display.php +++ b/inc/display.php @@ -415,10 +415,10 @@ class Post { )); } - public function getClean( ) { + public function getClean($actually_do = false) { global $board, $config; - if( !isset( $this->clean ) ) { + if( !isset( $this->clean ) && $actually_do ) { if ($config['cache']['enabled'] && $this->clean = cache::get("post_clean_{$board['uri']}_{$this->id}")) { return $this->clean; } @@ -441,8 +441,10 @@ class Post { if ($config['cache']['enabled']) cache::set("post_clean_{$board['uri']}_{$this->id}", $this->clean); } + } else { + $this->clean = array(); } - + return $this->clean; } }; diff --git a/inc/mod/pages.php b/inc/mod/pages.php index 7efabae6..027dd5bf 100644 --- a/inc/mod/pages.php +++ b/inc/mod/pages.php @@ -2507,7 +2507,7 @@ function mod_reports() { } // Fetch clean status. - $po->getClean(); + $po->getClean(true); $clean = $po->clean;