Removed spaces

This commit is contained in:
Bot 2017-01-22 01:02:52 +01:00 committed by Igor Scheller
parent 8506d6d27e
commit 3de0cc840f
16 changed files with 54 additions and 57 deletions

View File

@ -486,8 +486,7 @@ function User_by_password_recovery_token($token)
function User_reset_api_key(&$user, $log = true) function User_reset_api_key(&$user, $log = true)
{ {
$user['api_key'] = md5($user['Nick'] . time() . rand()); $user['api_key'] = md5($user['Nick'] . time() . rand());
DB::update( DB::update('
'
UPDATE `User` UPDATE `User`
SET `api_key`=? SET `api_key`=?
WHERE `UID`=? WHERE `UID`=?

View File

@ -53,8 +53,7 @@ function admin_active()
} }
if (isset($_REQUEST['ack'])) { if (isset($_REQUEST['ack'])) {
DB::update('UPDATE `User` SET `Aktiv` = 0 WHERE `Tshirt` = 0'); DB::update('UPDATE `User` SET `Aktiv` = 0 WHERE `Tshirt` = 0');
$users = DB::select(sprintf( $users = DB::select(sprintf('
'
SELECT SELECT
`User`.*, `User`.*,
COUNT(`ShiftEntry`.`id`) AS `shift_count`, COUNT(`ShiftEntry`.`id`) AS `shift_count`,

View File

@ -116,8 +116,7 @@ function admin_questions()
)); ));
if ($answer != '') { if ($answer != '') {
DB::update( DB::update('
'
UPDATE `Questions` UPDATE `Questions`
SET `AID`=?, `Answer`=? SET `AID`=?, `Answer`=?
WHERE `QID`=? WHERE `QID`=?