mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
bug fixes - had let a blog specific function sneak back in
This commit is contained in:
parent
3fca929936
commit
e999246f3f
@ -42,9 +42,9 @@
|
|||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<?php
|
<?php
|
||||||
$selectedarray = '';
|
$selectedarray = array();
|
||||||
if (isset($this->config) && isset($this->config->rssid)) {
|
if (isset($this->config) && isset($this->config->rssid)) {
|
||||||
if (blog_array_count($this->config->rssid)) {
|
if (is_array($this->config->rssid)) {
|
||||||
// rssid is an array of rssids
|
// rssid is an array of rssids
|
||||||
$selectedarray = $this->config->rssid;
|
$selectedarray = $this->config->rssid;
|
||||||
} else {
|
} else {
|
||||||
@ -66,9 +66,11 @@
|
|||||||
|
|
||||||
// since there may be multiple rssids to select
|
// since there may be multiple rssids to select
|
||||||
// we need to check for each
|
// we need to check for each
|
||||||
foreach ($selectedarray as $selected) {
|
if (!empty($selectedarray)) {
|
||||||
$selected = intval($selected);
|
foreach ($selectedarray as $selected) {
|
||||||
$dropdownmenustring = preg_replace("|\"$selected\">*|","\"$selected\" selected>", $dropdownmenustring);
|
$selected = intval($selected);
|
||||||
|
$dropdownmenustring = preg_replace("|\"$selected\">*|","\"$selected\" selected>", $dropdownmenustring);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
print $dropdownmenustring;
|
print $dropdownmenustring;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user