summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
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)