From: Andrew Dolgov Date: Wed, 10 Jul 2013 12:44:36 +0000 (+0400) Subject: api: fix typo X-Git-Tag: 1.9~60 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=4f2a2ca945f61437cfe9ed1e395e5461c4f55511;p=tt-rss.git api: fix typo --- diff --git a/classes/api.php b/classes/api.php index b3f4ebc2..03fb6eab 100644 --- a/classes/api.php +++ b/classes/api.php @@ -636,13 +636,13 @@ class API extends Handler { $feed_title = $qfh_ret[1]; $headlines = array(); - + while ($line = db_fetch_assoc($result)) { $line["content_preview"] = truncate_string(strip_tags($line["content_preview"]), 100); foreach (PluginHost::getInstance()->get_hooks(PluginHost::HOOK_QUERY_HEADLINES) as $p) { $line = $p->hook_query_headlines($line, 100, true); } - + $is_updated = ($line["last_read"] == "" && ($line["unread"] != "t" && $line["unread"] != "1")); @@ -665,12 +665,12 @@ class API extends Handler { "tags" => $tags, ); - if ($include_attachments) - $headline_row['attachments'] = get_article_enclosures( - $line['id']); + if ($include_attachments) + $headline_row['attachments'] = get_article_enclosures( + $line['id']); - if (!$show_excerpt ) - $headline_row["excerpt"] = $ine["content_preview"]; + if (!$show_excerpt) + $headline_row["excerpt"] = $line["content_preview"]; if ($show_content) { @@ -702,7 +702,7 @@ class API extends Handler { $headline_row["always_display_attachments"] = sql_bool_to_bool($line["always_display_enclosures"]); $headline_row["author"] = $line["author"]; - + $headline_row["score"] = (int)$line["score"]; foreach (PluginHost::getInstance()->get_hooks(PluginHost::HOOK_RENDER_ARTICLE_API) as $p) {