bug fixes - had let a blog specific function sneak back in

This commit is contained in:
dhawes 2004-12-31 02:22:30 +00:00
parent 3fca929936
commit e999246f3f

View File

@ -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;