From a750b8ab2a0cb715da6fd9025a7ec8375db68a4d Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Wed, 21 May 2014 22:33:57 -0400 Subject: Add categories for projects and tasks --- core/helper.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core') 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) -- cgit v1.2.3