diff --git a/wwwroot/inc/functions.php b/wwwroot/inc/functions.php index 6d957a808..f922c1a50 100644 --- a/wwwroot/inc/functions.php +++ b/wwwroot/inc/functions.php @@ -5118,12 +5118,13 @@ function showNotice ($message, $option = '') } // asks ok/cancel question -// return string 'true' or 'false' +// return TRUE/FALSE/NULL +// NULL = waiting for choice // adds 'answer' to request post data and repeats request function showChoice ($question) { if (isset ($_POST['answer'])) - return $_POST['answer']; + return ($_POST['answer'] === 'true' ? TRUE : FALSE); $form = "