summaryrefslogtreecommitdiff
path: root/backend.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-12-10 20:37:44 +0100
committerAndrew Dolgov <[email protected]>2005-12-10 20:37:44 +0100
commitcb58d0dff2e3d3ad7173cf313dd31aeb86f6b93a (patch)
treeebd91c5e2c7c0609d3213276f35517e95d7296e5 /backend.php
parent0ea4fb50963cd443e06ef77fb0d193335575e51b (diff)
prefs: reset line numbering for feedlist on category change
Diffstat (limited to 'backend.php')
-rw-r--r--backend.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/backend.php b/backend.php
index 8fc0d00b4..9ffe267a6 100644
--- a/backend.php
+++ b/backend.php
@@ -1673,8 +1673,6 @@
while ($line = db_fetch_assoc($result)) {
- $class = ($lnum % 2) ? "even" : "odd";
-
$feed_id = $line["id"];
$cat_id = $line["cat_id"];
@@ -1691,6 +1689,8 @@
if (get_pref($link, 'ENABLE_FEED_CATS') && $cur_cat_id != $cat_id) {
+ $lnum = 0;
+
print "<tr><td colspan=\"6\" class=\"feedEditCat\">$edit_cat</td></tr>";
print "<tr class=\"title\">
@@ -1711,6 +1711,7 @@
$cur_cat_id = $cat_id;
}
+ $class = ($lnum % 2) ? "even" : "odd";
$this_row_id = "id=\"FEEDR-$feed_id\"";
print "<tr class=\"$class\" $this_row_id>";