`userid`=%s
LIMIT 1",
array(bigintval($id), bigintval($content['userid'])), __FUNCTION__, __LINE__);
- if (SQL_NUMROWS($result_ref) == 0) {
- // Free memory
- SQL_FREERESULT($result_ref);
+ if (SQL_HASZERONUMS($result_ref)) {
// Add userid and his ref count to table
$result_ref = SQL_QUERY_ESC("SELECT
$un = true;
} // END - if
+ // Free memory
+ SQL_FREERESULT($result_ref);
+
// Ignored but for the template required refs (made before start of rallye)
$content['refs'] = $count;
), __FUNCTION__, __LINE__);
// Is this user added?
- if (SQL_NUMROWS($result) < 1) {
+ if (SQL_HASZERONUMS($result)) {
// Add userid and his ref count to table
SQL_QUERY_ESC("INSERT INTO
`{?_MYSQL_PREFIX?}_rallye_users`