X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Flibs%2Fregister_functions.php;h=5837b848ebc0530d3b4f3be987e92c42fe285b2b;hp=d64d8273b32e86895cc9060e0a6234d635e1f413;hb=307a4e11763f0914e73dc756b219356e1c29ab25;hpb=d13ff47b8686dd2632cda3ad2c4008a5063e3061
diff --git a/inc/libs/register_functions.php b/inc/libs/register_functions.php
index d64d8273b3..5837b848eb 100644
--- a/inc/libs/register_functions.php
+++ b/inc/libs/register_functions.php
@@ -45,7 +45,7 @@ function REGISTER_FILL_MUST_CONSTANTS()
while(list($name, $required) = SQL_FETCHROW($result))
{
$value = "";
- if ($required == 'Y') $value = " (*)";
+ if ($required == "Y") $value = " (*)";
$eval = "define('MUST_".strtoupper($name)."', \"".$value."\");";
eval($eval);
}
@@ -76,7 +76,7 @@ function REGISTER_CHECK_REQUIRED_FIELDS(&$array)
// if extensions is present check if country code was selected
// 01 2 21 12 3 32 234 5 54 4 43 34 4 4 5 5432 2 3 3210
$country = ((!EXT_IS_ACTIVE("country")) || ((EXT_IS_ACTIVE("country")) && (((empty($value)) && ($key == "cntry")) || (($key == "country_code") && (!empty($value)))) && (!empty($array['country_code']))));
- if ((empty($value)) && ($chk == 'Y') && (!$country))
+ if ((empty($value)) && ($chk == "Y") && (!$country))
{
// Required field not set
$array[$key] = "!";
@@ -92,7 +92,7 @@ function REGISTER_OUTPUT_REQUIRE_CHECK(&$array)
$result = SQL_QUERY("SELECT field_name, field_required FROM "._MYSQL_PREFIX."_must_register ORDER BY id", __FILE__, __LINE__);
while(list($name, $required) = SQL_FETCHROW($result))
{
- if (($array[$name] == "!") && ($required == 'Y'))
+ if (($array[$name] == "!") && ($required == "Y"))
{
// Empty entry found
$array[$name] = "";
@@ -134,7 +134,7 @@ function REGISTER_ADD_CATEGORY_TABLE ($MODE, $return=false)
'id' => $id,
);
- if (($_POST['cat'][$id] == 'Y') || (($_CONFIG['register_default'] == 'Y') && (empty($_POST['cat'][$id]))))
+ if (($_POST['cat'][$id] == "Y") || (($_CONFIG['register_default'] == "Y") && (empty($_POST['cat'][$id]))))
{
$content['def_y'] = ' checked';
}