aboutsummaryrefslogtreecommitdiff
path: root/mod/uservalidationbyemail
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2011-12-15 07:27:42 -0500
committerCash Costello <cash.costello@gmail.com>2011-12-15 07:27:42 -0500
commit32d30e7b805e7c9c192b69516c211e90a2b3862e (patch)
tree076c6cfc48c359e38b500ed7c532a1e9769e14ed /mod/uservalidationbyemail
parent2aa0e3846b60a44c6f2dbfe2f9a690776533dca3 (diff)
downloadelgg-32d30e7b805e7c9c192b69516c211e90a2b3862e.tar.gz
elgg-32d30e7b805e7c9c192b69516c211e90a2b3862e.tar.bz2
Refs #4196 integrates fix into 1.8 branch
Diffstat (limited to 'mod/uservalidationbyemail')
-rw-r--r--mod/uservalidationbyemail/lib/functions.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/mod/uservalidationbyemail/lib/functions.php b/mod/uservalidationbyemail/lib/functions.php
index eaca374f4..f3091f94d 100644
--- a/mod/uservalidationbyemail/lib/functions.php
+++ b/mod/uservalidationbyemail/lib/functions.php
@@ -87,7 +87,13 @@ function uservalidationbyemail_get_unvalidated_users_sql_where() {
global $CONFIG;
$validated_id = get_metastring_id('validated');
- $one_id = get_metastring_id(1);
+ if ($validated_id === false) {
+ $validated_id = add_metastring('validated');
+ }
+ $one_id = get_metastring_id('1');
+ if ($one_id === false) {
+ $one_id = add_metastring('1');
+ }
// thanks to daveb@freenode for the SQL tips!
$wheres = array();