diff --git a/blog/lib.php b/blog/lib.php index 5d0c4f41773..adff6a64f6f 100644 --- a/blog/lib.php +++ b/blog/lib.php @@ -226,7 +226,7 @@ function blog_sync_external_entries($externalblog) { $newentry->created = $timestamp; } $newentry->lastmodified = $timestamp; - + if (empty($oldesttimestamp) || $timestamp < $oldesttimestamp) { //found an older post $oldesttimestamp = $timestamp;