aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_user.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2009-08-17 13:21:44 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2009-08-17 13:21:44 +0000
commit300f6868afc4ee53d97d289f85a0383b88ba377e (patch)
tree6e7b16bcd8b5074162e5b7e002f539a1aa2b8108 /phpBB/includes/functions_user.php
parentd42e5a71d23093a4cce4b1a56b7482670258476d (diff)
downloadforums-300f6868afc4ee53d97d289f85a0383b88ba377e.tar
forums-300f6868afc4ee53d97d289f85a0383b88ba377e.tar.gz
forums-300f6868afc4ee53d97d289f85a0383b88ba377e.tar.bz2
forums-300f6868afc4ee53d97d289f85a0383b88ba377e.tar.xz
forums-300f6868afc4ee53d97d289f85a0383b88ba377e.zip
i am very very sorry for this hackish approach...
(ability to skip add_log calls) git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10003 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_user.php')
-rw-r--r--phpBB/includes/functions_user.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php
index ca6aae2540..c562ac666f 100644
--- a/phpBB/includes/functions_user.php
+++ b/phpBB/includes/functions_user.php
@@ -290,6 +290,9 @@ function user_add($user_row, $cp_data = false)
if ($add_group_id)
{
+ // Because these actions only fill the log unneccessarily we skip the add_log() entry with a little hack. :/
+ $GLOBALS['skip_add_log'] = true;
+
// Add user to "newly registered users" group and set to default group if admin specified so.
if ($config['new_member_group_default'])
{
@@ -299,6 +302,8 @@ function user_add($user_row, $cp_data = false)
{
group_user_add($add_group_id, $user_id);
}
+
+ unset($GLOBALS['skip_add_log']);
}
}
@@ -3519,12 +3524,12 @@ function remove_newly_registered($user_id, $user_data = false)
$user_data = $user_row;
}
}
-
+
if (empty($user_data['user_new']))
{
return false;
}
-
+
$sql = 'SELECT group_id
FROM ' . GROUPS_TABLE . "
WHERE group_name = 'NEWLY_REGISTERED'