]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Refs #4196 integrates fix into 1.8 branch
authorCash Costello <cash.costello@gmail.com>
Thu, 15 Dec 2011 12:27:42 +0000 (07:27 -0500)
committerCash Costello <cash.costello@gmail.com>
Thu, 15 Dec 2011 12:27:42 +0000 (07:27 -0500)
mod/uservalidationbyemail/lib/functions.php

index eaca374f43628a58ab2e573d33a3a09189250bf1..f3091f94decb6a98145576aea50a28edf0517f5d 100644 (file)
@@ -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();