From ac9b1f0772d399f04bf3494e09e22a01af78922e Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 15 Aug 2012 15:13:26 +0400 Subject: [PATCH] opml: some indenting stuff --- opml.php | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/opml.php b/opml.php index eab0b7b7d..79d1a2e7a 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 .= "";