return false;
} // END - if
+ // Default is not working
+ $return = false;
+
// Does it exist?
if ((!getEpocheTimeFromUserStats($statsType, $statsData, $userid)) && (!is_array($statsData))) {
// Then insert it!
$statsType,
$statsData
), __FUNCTION__, __LINE__);
+
+ // Does it have worked?
+ $return = (!SQL_HASZEROAFFECTED());
} elseif (is_array($statsData)) {
// Invalid data!
logDebugMessage(__FUNCTION__, __LINE__, 'userid=' . $userid . ',type=' . $statsType . ',data=' . gettype($statsData) . ': Invalid statistics data type!');
}
+
+ // Return status
+ return $return;
}
// Confirms a user account
} // END - if
// Insert stats record
- //insertUserStatsRecord($userId, $type, $stats_data);
+ insertUserStatsRecord($userId, $type, $stats_data);
// Right code entered?
if (bigintval(postRequestParameter('gfx_check')) == $realCode) {