Required fix for NULL vs. 0 in user_points
[mailer.git] / inc / libs / register_functions.php
index 20d35c2ce7ea735a8b882016511ea22486a368a8..e98010cd6650e29d41e6d3f6477fa3ab2709b0cc 100644 (file)
@@ -339,7 +339,7 @@ function doRegistration () {
                generateHash(postRequestParameter('pass1')),
                bigintval(postRequestParameter('max_mails')),
                bigintval(postRequestParameter('max_mails')),
-               makeDatabaseUserId(postRequestParameter('refid')),
+               makeZeroToNull(postRequestParameter('refid')),
                $hash,
                detectRemoteAddr(),
        ), __FUNCTION__, __LINE__);