X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Flibs%2Fregister_functions.php;h=cc4ecaeb8c36f1cc19b63b16f75ea6fb4d98dd9b;hb=d92d8b4ddd219b65df8e0bba5e4354c0bbfba5c9;hp=99af2efc60c7ba22d6f82a729c13617e7ef71202;hpb=64c8349613addc3da2242c5cd6b99d64e3fb5f8e;p=mailer.git diff --git a/inc/libs/register_functions.php b/inc/libs/register_functions.php index 99af2efc60..cc4ecaeb8c 100644 --- a/inc/libs/register_functions.php +++ b/inc/libs/register_functions.php @@ -147,10 +147,13 @@ function FILTER_REGISTER_MUST_FILLOUT ($content) { $result = SQL_QUERY("SELECT `field_name`, `field_required` FROM `{?_MYSQL_PREFIX?}_must_register` ORDER BY `id` ASC", __FUNCTION__, __LINE__); + // Walk through all entries while ($row = SQL_FETCHARRAY($result)) { + // Must the user fill out this element? $value = ''; if ($row['field_required'] == 'Y') $value = " (*)"; - // @TODO Rewrite these constants + + // Add it $content['must_fillout_'.strtolower($row['field_name']).''] = $value; } // END - while