X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Flibs%2Fregister_functions.php;h=d73f86568fe9d32b1e0f5aa40e7611e26cfb8d02;hp=5a50b7df0741121bac180c4c2b534d8017e23b75;hb=c85ddc06cc16f2cd38ddd7d4c142a3f578bbab69;hpb=04fd04fb0015f81cec6b77b61bdae1d60ebf02ba 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';