Introduced new wrapper functions to make the code more readable, new extension ext...
[mailer.git] / inc / libs / register_functions.php
index 5a50b7df0741121bac180c4c2b534d8017e23b75..d73f86568fe9d32b1e0f5aa40e7611e26cfb8d02 100644 (file)
@@ -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';