mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
MDL-25340 external blog - fix sql_compare_text() use
This commit is contained in:
parent
296f6c99b1
commit
a742eb1f8b
@ -235,7 +235,9 @@ function blog_sync_external_entries($externalblog) {
|
||||
function blog_delete_external_entries($externalblog) {
|
||||
global $DB;
|
||||
require_capability('moodle/blog:manageexternal', get_context_instance(CONTEXT_SYSTEM));
|
||||
$DB->delete_records_select('post', 'content='.$DB->sql_compare_text($externalblog->id)." and module='blog_external'");
|
||||
$DB->delete_records_select('post',
|
||||
"module='blog_external' AND " . $DB->sql_compare_text('content') . " = ?",
|
||||
array($externalblog->id));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user