X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Flibs%2Fregister_functions.php;h=d73f86568fe9d32b1e0f5aa40e7611e26cfb8d02;hb=3ce031a4ae807dd16a6e08e3e592fe7128de724a;hp=5a50b7df0741121bac180c4c2b534d8017e23b75;hpb=07e126c776ca39d4e8d6a751af02b08221e664e2;p=mailer.git diff --git a/inc/libs/register_functions.php b/inc/libs/register_functions.php index 5a50b7df07..d73f86568f 100644 --- a/inc/libs/register_functions.php +++ b/inc/libs/register_functions.php @@ -381,7 +381,7 @@ VALUES ('%s','%s','%s','%s','%s',%s,'%s','%s',%s, %s,%s,'%s',%s, %s,'%s','UNCONF // @TODO Wether the registration bonus should only be added to user directly or through referal system should be configurable $result = SQL_QUERY_ESC("SELECT `id` FROM `{?_MYSQL_PREFIX?}_user_points` WHERE `userid`=%s AND `ref_depth`=0 LIMIT 1", array($userid), __FILE__, __LINE__); - if (SQL_NUMROWS($result) == '0') { + if (SQL_HASZERONUMS($result)) { // Add only when the line was not found (maybe some more secure?) $locked = 'points';