summaryrefslogtreecommitdiff
path: root/include/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/functions.php')
-rw-r--r--include/functions.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/functions.php b/include/functions.php
index 175950289..80581433a 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -3972,7 +3972,7 @@
db_query($link, "COMMIT");
}
- function label_create($link, $caption) {
+ function label_create($link, $caption, $fg_color = '', $bg_color = '') {
db_query($link, "BEGIN");
@@ -3983,8 +3983,8 @@
if (db_num_rows($result) == 0) {
$result = db_query($link,
- "INSERT INTO ttrss_labels2 (caption,owner_uid)
- VALUES ('$caption', '".$_SESSION["uid"]."')");
+ "INSERT INTO ttrss_labels2 (caption,owner_uid,fg_color,bg_color)
+ VALUES ('$caption', '".$_SESSION["uid"]."', '$fg_color', '$bg_color')");
$result = db_affected_rows($link, $result) != 0;
}