Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit e999246f3f3803cc030a98cb03ed7f8e0f40f6d1 1 parent 3fca929
dhawes authored
Showing with 7 additions and 5 deletions.
  1. +7 −5 blocks/rss_client/config_instance.html
View
12 blocks/rss_client/config_instance.html
@@ -42,9 +42,9 @@
</td>
<td>
<?php
- $selectedarray = '';
+ $selectedarray = array();
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
$selectedarray = $this->config->rssid;
} else {
@@ -66,9 +66,11 @@
// since there may be multiple rssids to select
// we need to check for each
- foreach ($selectedarray as $selected) {
- $selected = intval($selected);
- $dropdownmenustring = preg_replace("|\"$selected\">*|","\"$selected\" selected>", $dropdownmenustring);
+ if (!empty($selectedarray)) {
+ foreach ($selectedarray as $selected) {
+ $selected = intval($selected);
+ $dropdownmenustring = preg_replace("|\"$selected\">*|","\"$selected\" selected>", $dropdownmenustring);
+ }
}
print $dropdownmenustring;
Please sign in to comment.
Something went wrong with that request. Please try again.