diff --git a/scripts/fixup_notices_rendered.php b/scripts/fixup_notices_rendered.php index 7b29f0d235..c6c925729e 100755 --- a/scripts/fixup_notices_rendered.php +++ b/scripts/fixup_notices_rendered.php @@ -31,7 +31,12 @@ require_once(INSTALLDIR . '/lib/common.php'); common_log(LOG_INFO, 'Starting to render old notices.'); +$start_at = ($argc > 1) ? $argv[1] : NULL; + $notice = new Notice(); +if ($start_at) { + $notice->whereAdd('id >= ' . $start_at); +} $cnt = $notice->find(); while ($notice->fetch()) {