summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-05-21 22:33:57 -0400
committerFrédéric Guillot <fred@kanboard.net>2014-05-21 22:33:57 -0400
commita750b8ab2a0cb715da6fd9025a7ec8375db68a4d (patch)
tree5d5cdac1830336baf93b057e93cd2c1c56f405de /core
parent57e40671af56ae49eda467d9d5949bf9707020ee (diff)
Add categories for projects and tasks
Diffstat (limited to 'core')
-rw-r--r--core/helper.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/helper.php b/core/helper.php
index 7e65543a..8351328a 100644
--- a/core/helper.php
+++ b/core/helper.php
@@ -112,13 +112,13 @@ function contains($haystack, $needle)
return strpos($haystack, $needle) !== false;
}
-function in_list($id, array $listing)
+function in_list($id, array $listing, $default_value = '?')
{
if (isset($listing[$id])) {
return escape($listing[$id]);
}
- return '?';
+ return $default_value;
}
function error_class(array $errors, $name)