mirror of
https://github.com/moodle/moodle.git
synced 2025-01-29 19:50:14 +01:00
blog MDL-25341 fixed 2 more whitespace issues
This commit is contained in:
parent
694fb770b9
commit
2948757873
@ -257,10 +257,10 @@ function blog_sync_external_entries($externalblog) {
|
||||
//Look at the posts we have in the database to check if any of them have been deleted from the feed.
|
||||
//Only checking posts within the time frame returned by the rss feed. Older items may have been deleted or
|
||||
//may just not be returned anymore. We cant tell the difference so we leave older posts alone.
|
||||
$dbposts = $DB->get_records_select('post', 'created > :ts', array('ts'=>$oldesttimestamp), '', 'id, uniquehash');
|
||||
$dbposts = $DB->get_records_select('post', 'created > :ts', array('ts' => $oldesttimestamp), '', 'id, uniquehash');
|
||||
$todelete = array();
|
||||
foreach($dbposts as $dbpost) {
|
||||
if (!in_array($dbpost->uniquehash,$uniquehashes)) {
|
||||
if ( !in_array($dbpost->uniquehash, $uniquehashes) ) {
|
||||
$todelete[] = $dbpost->id;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user