From 5404bd6b166f6a335d99d3bd17f6209c7ee151e9 Mon Sep 17 00:00:00 2001 From: yannis Date: Wed, 25 Jun 2025 11:12:38 +0200 Subject: [PATCH] feat: change var names for understandability --- htdocs/user/api_token/card.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/user/api_token/card.php b/htdocs/user/api_token/card.php index a7bc2bbf2a0..05f891468a2 100644 --- a/htdocs/user/api_token/card.php +++ b/htdocs/user/api_token/card.php @@ -74,7 +74,7 @@ if ($user->id != $id && !$canreaduser) { accessforbidden(); } -$sql = "SELECT ot.rowid as token_id, ot.token, ot.entity, ot.state, ot.datec, ot.tms"; +$sql = "SELECT ot.rowid as token_id, ot.token, ot.entity, ot.state as rights, ot.datec as date_creation, ot.tms as date_modification"; $sql .= " FROM ".MAIN_DB_PREFIX."oauth_token as ot"; $sql .= " WHERE ot.rowid = ".((int) $tokenid); @@ -187,14 +187,14 @@ print ''."\n"; // Creation date print ''.$langs->trans("DateCreation").''; print ''; -print ''; +print ''; print ''; print ''."\n"; // Modification date print ''.$langs->trans("DateModification").''; print ''; -print ''; +print ''; print ''; print ''."\n";