// Set mail order as "active". That means it will be sent out
$result_active = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_pool SET data_type='ACTIVE' WHERE id=%s AND data_type='NEW' LIMIT 1",
array($DATA[0]), __FILE__, __LINE__);
- if (SQL_AFFECTEDROWS($result_active) == 1)
+ if (SQL_AFFECTEDROWS() == 1)
{
// "Explode" all receivers into an array
if (ereg(";", $DATA[4]))
// Now, if we are good little boys and girls Santa left us some user-ids.
// We can now send mails to them...
- foreach ($RECEIVERS as $key=>$uid)
+ foreach ($RECEIVERS as $key => $uid)
{
// Lookup user ID
$result_user = SQL_QUERY_ESC("SELECT sex, surname, family, email FROM "._MYSQL_PREFIX."_user_data WHERE userid=%s LIMIT 1",
}
if ((sizeof($points_BACK) > 0) && (!empty($points_BACK[0])))
{
- foreach ($points_BACK as $uid=>$PB)
+ foreach ($points_BACK as $uid => $PB)
{
// Add points only when we have points left to add and a valid user ID
if (($PB > 0) && ($uid > 0))
// Now, if we are good little boys and girls Santa left us some user-ids.
// We can now send mails to them...
- foreach ($RECEIVERS as $key=>$uid)
+ foreach ($RECEIVERS as $key => $uid)
{
// Load personal data
//* DEBUG: */ echo "*L:".__LINE__."/".$uid."*<br />";