diff --git a/classes/feeds.php b/classes/feeds.php index f91a7925c..1d106ea2e 100644 --- a/classes/feeds.php +++ b/classes/feeds.php @@ -296,7 +296,7 @@ class Feeds extends Handler_Protected { } } - $reply['content'] = array(); + $reply['content'] = ''; if (!is_numeric($result) && $this->dbh->num_rows($result) > 0) { @@ -310,7 +310,6 @@ class Feeds extends Handler_Protected { $expand_cdm = get_pref('CDM_EXPANDED'); while ($line = $this->dbh->fetch_assoc($result)) { - $headline_row = ''; $line["content_preview"] = "— " . truncate_string(strip_tags($line["content"]), 250); @@ -466,65 +465,65 @@ class Feeds extends Handler_Protected { $mouseover_attrs = "onmouseover='postMouseIn(event, $id)' onmouseout='postMouseOut($id)'"; - $headline_row .= "
";
+ $reply['content'] .= " ";
$result = $this->dbh->query("SELECT ".SUBSTRING_FOR_DATE."(MAX(last_updated), 1, 19) AS last_updated FROM ttrss_feeds
WHERE owner_uid = " . $_SESSION['uid']);
@@ -797,7 +794,7 @@ class Feeds extends Handler_Protected {
$last_updated = $this->dbh->fetch_result($result, 0, "last_updated");
$last_updated = make_local_datetime($last_updated, false);
- $headline_row .= sprintf(__("Feeds last updated at %s"), $last_updated);
+ $reply['content'] .= sprintf(__("Feeds last updated at %s"), $last_updated);
$result = $this->dbh->query("SELECT COUNT(id) AS num_errors
FROM ttrss_feeds WHERE last_error != '' AND owner_uid = ".$_SESSION["uid"]);
@@ -805,14 +802,12 @@ class Feeds extends Handler_Protected {
$num_errors = $this->dbh->fetch_result($result, 0, "num_errors");
if ($num_errors > 0) {
- $headline_row .= "
";
- $headline_row .= "".
+ $reply['content'] .= "
";
+ $reply['content'] .= "".
__('Some feeds have update errors (click for details)')."";
}
- $headline_row .= "
";
+ $reply['headlines']['content'] .= " ";
$result = $this->dbh->query("SELECT ".SUBSTRING_FOR_DATE."(MAX(last_updated), 1, 19) AS last_updated FROM ttrss_feeds
WHERE owner_uid = " . $_SESSION['uid']);
@@ -971,7 +966,7 @@ class Feeds extends Handler_Protected {
$last_updated = $this->dbh->fetch_result($result, 0, "last_updated");
$last_updated = make_local_datetime($last_updated, false);
- $headline_row .= sprintf(__("Feeds last updated at %s"), $last_updated);
+ $reply['headlines']['content'] .= sprintf(__("Feeds last updated at %s"), $last_updated);
$result = $this->dbh->query("SELECT COUNT(id) AS num_errors
FROM ttrss_feeds WHERE last_error != '' AND owner_uid = ".$_SESSION["uid"]);
@@ -979,13 +974,11 @@ class Feeds extends Handler_Protected {
$num_errors = $this->dbh->fetch_result($result, 0, "num_errors");
if ($num_errors > 0) {
- $headline_row .= "
";
- $headline_row .= "".
+ $reply['headlines']['content'] .= "
";
+ $reply['headlines']['content'] .= "".
__('Some feeds have update errors (click for details)')."";
}
- $headline_row .= "