Fix for MDL-6654

This commit is contained in:
vyshane 2006-09-22 07:08:43 +00:00
parent 1febf1a77a
commit 242a445fdf
2 changed files with 10 additions and 0 deletions

View File

@ -37,6 +37,11 @@ function rss_client_upgrade($oldversion) {
if ($rssfeeds = get_records_select('block_rss_client', $adminsql)) {
foreach ($rssfeeds as $rssfeed) {
$rssfeed->shared = 1;
$rssfeed->title = addslashes($rssfeed->title);
$rssfeed->preferredtitle = addslashes($rssfeed->preferredtitle);
$rssfeed->description = addslashes($rssfeed->description);
$rssfeed->url = addslashes($rssfeed->url);
if (!update_record('block_rss_client', $rssfeed)) {
notice('Could not set '.$rssfeed->title.' as a shared RSS feed.');
}

View File

@ -39,6 +39,11 @@ function rss_client_upgrade($oldversion) {
if ($rssfeeds = get_records_select('block_rss_client', $adminsql)) {
foreach ($rssfeeds as $rssfeed) {
$rssfeed->shared = 1;
$rssfeed->title = addslashes($rssfeed->title);
$rssfeed->preferredtitle = addslashes($rssfeed->preferredtitle);
$rssfeed->description = addslashes($rssfeed->description);
$rssfeed->url = addslashes($rssfeed->url);
if (!update_record('block_rss_client', $rssfeed)) {
notice('Could not set '.$rssfeed->title.' as a shared RSS feed.');
}