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;
default:
$wht = '';
break;
- }
+ } // END - switch
// Return what value
return $wht;
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');