diff options
Diffstat (limited to 'fixup_notices_rendered.php')
-rwxr-xr-x | fixup_notices_rendered.php | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/fixup_notices_rendered.php b/fixup_notices_rendered.php index 546eef37e..53f9b1b16 100755 --- a/fixup_notices_rendered.php +++ b/fixup_notices_rendered.php @@ -35,13 +35,11 @@ $notice = new Notice(); $cnt = $notice->find(); while ($notice->fetch()) { - if (!$notice->rendered) { - common_log(LOG_INFO, 'Pre-rendering notice #' . $notice->id); - $original = clone($notice); - $notice->rendered = common_render_content($notice->content, $notice); - $result = $notice->update($original); - if (!$result) { - common_log_db_error($notice, 'UPDATE', __FILE__); - } + common_log(LOG_INFO, 'Pre-rendering notice #' . $notice->id); + $original = clone($notice); + $notice->rendered = common_render_content($notice->content, $notice); + $result = $notice->update($original); + if (!$result) { + common_log_db_error($notice, 'UPDATE', __FILE__); } } |