]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/user_functions.php
insertUserStatsRecord() was commented out, but still the status (true/false) is being...
[mailer.git] / inc / libs / user_functions.php
index 029ab472ff5fbdb2c3f837c63051bc233ed405b2..488e8f6f4f10143a3c88904bf0f365581f068dd8 100644 (file)
@@ -524,6 +524,9 @@ function insertUserStatsRecord ($userid, $statsType, $statsData) {
                return false;
        } // END - if
 
+       // Default is not working
+       $return = false;
+
        // Does it exist?
        if ((!getEpocheTimeFromUserStats($statsType, $statsData, $userid)) && (!is_array($statsData))) {
                // Then insert it!
@@ -533,10 +536,16 @@ function insertUserStatsRecord ($userid, $statsType, $statsData) {
                                $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