X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fmember%2Fwhat-order.php;h=5b86f5e55ac2d7496b19e0268208511a385b74e4;hb=b8a6f8012aa3509d8e0f8fd078e044f20e80707a;hp=a9b269896d66e50e85eefbe9cd9f84a791b98c4e;hpb=916bba4f00ee924f0d88b8fc273dee5bfb798aed;p=mailer.git diff --git a/inc/modules/member/what-order.php b/inc/modules/member/what-order.php index a9b269896d..5b86f5e55a 100644 --- a/inc/modules/member/what-order.php +++ b/inc/modules/member/what-order.php @@ -1,7 +1,7 @@ UNIX_TIMESTAMP() LIMIT 1", array($holidayContent['userid']), __FILE__, __LINE__); - if (SQL_NUMROWS($result_holiday) == 1) $holidayContent['userid'] = 0; // Exclude user who are in holiday + if (SQL_NUMROWS($result_holiday) == 1) $holidayContent['userid'] = '0'; // Exclude user who are in holiday // Free memory SQL_FREERESULT($result_holiday); @@ -286,9 +286,9 @@ LIMIT 1", // Check if he has enougth points for this order and selected more than 0 receivers if (($USED > 0) && ($USED <= $total) && ($content['target_send'] > 0)) { // Gettings points is okay, so we can add $USED later from - if (($id == 0) || ($type != 'TEMP')) { + if (($id == '0') || ($type != 'TEMP')) { // New order - $id = 0; + $id = '0'; if (isExtensionActive('html_mail')) { // HTML extension is active SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_pool` (`sender`, `subject`, `text`, `receivers`, `payment_id`, `data_type`, `timestamp`, `url`, `cat_id`, `target_send`, `zip`, `html_msg`) @@ -385,7 +385,7 @@ LIMIT 1", } // Do we need to get the id number? - if ($id == 0) { + if ($id == '0') { // Order is placed as temporary. We need to get it's id for the frametester $result = SQL_QUERY_ESC("SELECT `id` FROM `{?_MYSQL_PREFIX?}_pool` WHERE `sender`=%s AND `subject`='%s' AND `payment_id`=%s AND `data_type`='TEMP' AND `timestamp`=UNIX_TIMESTAMP() LIMIT 1", array( @@ -403,7 +403,7 @@ LIMIT 1", // id is received so we can redirect the user, used points will be added when he send's out the mail $URL = 'modules.php?module=frametester&order=' . $id; - } elseif ($content['target_send'] == 0) { + } elseif ($content['target_send'] == '0') { // Not enougth receivers found which can receive mails $URL = 'modules.php?module=login&what=order&code=' . getCode('MORE_RECEIVERS2'); } else { @@ -418,7 +418,7 @@ LIMIT 1", } elseif (postRequestElement('receiver') == '0') { // Not enougth receivers selected $URL = 'modules.php?module=login&what=order&code=' . getCode('MORE_RECEIVERS1'); -} elseif (($ALLOWED == 0) && (getConfig('order_max_full') == 'ORDER')) { +} elseif (($ALLOWED == '0') && (getConfig('order_max_full') == 'ORDER')) { // No more mail orders allowed loadTemplate('admin_settings_saved', false, getMessage('MEMBER_ORDER_ALLOWED_EXHAUSTED')); } elseif (($links < getConfig('unconfirmed')) && ($mmails == 1)) { @@ -457,7 +457,7 @@ ORDER BY $result_userids = SQL_QUERY_ESC("SELECT `userid` FROM `{?_MYSQL_PREFIX?}_user_cats` WHERE `cat_id`=%s AND `userid` != '%s' ORDER BY `userid` ASC", array(bigintval($categoriesContent['id']), getMemberId()), __FILE__, __LINE__); - $userid_cnt = 0; + $userid_cnt = '0'; while (list($ucat) = SQL_FETCHROW($result_userids)) { // Check for holiday system $HOL_ACTIVE = false; @@ -643,7 +643,7 @@ LIMIT 1", $add = ''; if (isExtensionActive('html_mail')) { // Add some content when html extension is active - if ((getConfig('order_multi_page') == 'Y') || (isAdmin())) $add = " \n"; + if ((getConfig('order_multi_page') == 'Y') || (isAdmin())) $add = " \n"; $content['html_extension'] = loadTemplate('member_order-html_intro', true); } else { // No HTML extension installed @@ -685,7 +685,7 @@ LIMIT 1", // No cateogries are defined yet loadTemplate('admin_settings_saved', false, "{--MEMBER_NO_CATS--}"); } -} elseif ($mmails == 0) { +} elseif ($mmails == '0') { // Please set more than 0 mails per day loadTemplate('admin_settings_saved', false, getMessage('MEMBER_HAS_ZERO_MMAILS')); } else {