From: Andrew Dolgov Date: Wed, 15 Aug 2012 11:13:26 +0000 (+0400) Subject: opml: some indenting stuff X-Git-Tag: 1.6.0~149 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=ac9b1f0772d399f04bf3494e09e22a01af78922e;p=tt-rss.git opml: some indenting stuff --- diff --git a/opml.php b/opml.php index eab0b7b7..79d1a2e7 100644 --- a/opml.php +++ b/opml.php @@ -269,20 +269,20 @@ from ttrss_feeds where $feed_cat_qpart AND owner_uid = '$owner_uid' AND $hide_qpart order by order_id, title"); - while ($fline = db_fetch_assoc($feeds_result)) { - $title = htmlspecialchars($fline["title"]); - $url = htmlspecialchars($fline["feed_url"]); - $site_url = htmlspecialchars($fline["site_url"]); + while ($fline = db_fetch_assoc($feeds_result)) { + $title = htmlspecialchars($fline["title"]); + $url = htmlspecialchars($fline["feed_url"]); + $site_url = htmlspecialchars($fline["site_url"]); - if ($site_url) { - $html_url_qpart = "htmlUrl=\"$site_url\""; - } else { - $html_url_qpart = ""; - } - - $out .= "\n"; + if ($site_url) { + $html_url_qpart = "htmlUrl=\"$site_url\""; + } else { + $html_url_qpart = ""; } + $out .= "\n"; + } + if ($cat_title) $out .= "\n"; return $out; @@ -316,14 +316,10 @@ profile IS NULL AND owner_uid = " . $_SESSION["uid"] . " ORDER BY pref_name"); while ($line = db_fetch_assoc($result)) { - $name = $line["pref_name"]; $value = htmlspecialchars($line["value"]); - $out .= ""; - - $out .= ""; - + $out .= ""; } $out .= "";