From 14f69488dafab0fc44666038eb370d59b54d1e9c Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 20 May 2006 12:16:16 +0100 Subject: use prototype in form editor --- functions.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'functions.php') diff --git a/functions.php b/functions.php index 343315eb1..0f05f8aec 100644 --- a/functions.php +++ b/functions.php @@ -1610,10 +1610,10 @@ function print_feed_cat_select($link, $id, $default_id = "", $attributes = "", $include_all_cats = true) { - print ""; if ($include_all_cats) { - print ""; + print ""; } $result = db_query($link, "SELECT id,title FROM ttrss_feed_categories @@ -1629,11 +1629,14 @@ } else { $is_selected = ""; } - printf("", + printf("", $line["id"], $line["title"]); } print ""; } + function checkbox_to_sql_bool($val) { + return ($val == "on") ? "true" : "false"; + } ?> -- cgit v1.2.3-54-g00ecf