Removed spaces
This commit is contained in:
parent
8506d6d27e
commit
3de0cc840f
|
@ -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`=?
|
||||||
|
|
|
@ -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`,
|
||||||
|
|
|
@ -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`=?
|
||||||
|
|
Loading…
Reference in New Issue