X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Flibs%2Fuser_functions.php;h=488e8f6f4f10143a3c88904bf0f365581f068dd8;hb=6449d733d65425128f9ebc3f9d9c818c6a7e5206;hp=029ab472ff5fbdb2c3f837c63051bc233ed405b2;hpb=3362362ce0e29315913fd679ea359ce27b8d3733;p=mailer.git diff --git a/inc/libs/user_functions.php b/inc/libs/user_functions.php index 029ab472ff..488e8f6f4f 100644 --- a/inc/libs/user_functions.php +++ b/inc/libs/user_functions.php @@ -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