]> git.mxchange.org Git - mailer.git/blobdiff - inc/mysql-manager.php
TODOs.txt updated, TODO added for SUB_POINTS(), some rewrites, fix for isWhatSet()
[mailer.git] / inc / mysql-manager.php
index 8acc8e75a3b5df62059451fbdefca11601be2b9a..d0edc7d94fb381bb8337a3dae2ceedb09cd149a7 100644 (file)
@@ -1730,10 +1730,11 @@ function getWhatFromModule ($modCheck) {
                return REQUEST_GET('what');
        } // END - if
 
+       // Default is empty
        $wht = '';
+
        //* DEBUG: */ echo __LINE__.'!'.$modCheck."!<br />\n";
-       switch ($modCheck)
-       {
+       switch ($modCheck) {
                case 'admin':
                        $wht = 'overview';
                        break;
@@ -1747,7 +1748,7 @@ function getWhatFromModule ($modCheck) {
                default:
                        $wht = '';
                        break;
-       }
+       } // END - switch
 
        // Return what value
        return $wht;
@@ -1757,9 +1758,10 @@ function getWhatFromModule ($modCheck) {
 function SUB_POINTS ($subject, $uid, $points) {
        // Add points to used points
        SQL_QUERY_ESC("UPDATE `{!_MYSQL_PREFIX!}_user_data` SET `used_points`=`used_points`+%s WHERE userid=%s LIMIT 1",
-       array($points, bigintval($uid)), __FUNCTION__, __LINE__);
+               array($points, bigintval($uid)), __FUNCTION__, __LINE__);
 
        // Insert booking record
+       // @TODO Rewrite this to a filter
        if (EXT_IS_ACTIVE('booking')) {
                // Add record
                ADD_BOOKING_RECORD($subject, $uid, $points, 'sub');