From a283b8d13e68921f27531994a331564a8a04020c Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 22 Aug 2006 09:54:32 +0100 Subject: recategorize feed with all linked feeds --- backend.php | 38 ++++++++++++++++++++++++++++++-------- 1 file changed, 30 insertions(+), 8 deletions(-) (limited to 'backend.php') diff --git a/backend.php b/backend.php index 0075eb659..ddc73b972 100644 --- a/backend.php +++ b/backend.php @@ -1236,7 +1236,15 @@ print "Category:"; print ""; - print_feed_cat_select($link, "cat_id", $cat_id, "class=\"iedit\""); + $parent_feed = db_fetch_result($result, 0, "parent_feed"); + + if (sprintf("%d", $parent_feed) > 0) { + $disabled = "disabled"; + } else { + $disabled = ""; + } + + print_feed_cat_select($link, "cat_id", $cat_id, "class=\"iedit\" $disabled"); print ""; print ""; @@ -1265,6 +1273,8 @@ if ($linked_count > 0) { $disabled = "disabled"; + } else { + $disabled = ""; } print "