File tree 3 files changed +3
-6
lines changed
includes/libraries/teampassclasses/configmanager/src
vendor/teampassclasses/configmanager/src
3 files changed +3
-6
lines changed Original file line number Diff line number Diff line change 30
30
31
31
use TeampassClasses \SessionManager \SessionManager ;
32
32
use DB ;
33
+
33
34
class ConfigManager
34
35
{
35
36
private $ settings ;
@@ -131,7 +132,7 @@ public function getLastModificationTimestamp(): string|null
131
132
require_once __DIR__ .'/../../../sergeytsalkov/meekrodb/db.class.php ' ;
132
133
133
134
$ maxTimestamp = DB ::queryFirstField (
134
- 'SELECT MAX( GREATEST(created_at, updated_at)) AS timestamp
135
+ 'SELECT GREATEST(MAX( created_at), MAX( updated_at)) AS timestamp
135
136
FROM ' . prefixTable ('misc ' ) . '
136
137
WHERE type = %s ' ,
137
138
'admin '
Original file line number Diff line number Diff line change 2125
2125
$ post_field
2126
2126
);
2127
2127
2128
- // Update session settings
2129
- $ SETTINGS [$ post_field ] = $ post_value ;
2130
- $ session ->set ('teampass-settings ' , $ SETTINGS );
2131
-
2132
2128
// in case of stats enabled, update the actual time
2133
2129
if ($ post_field === 'send_stats ' ) {
2134
2130
// Check if previous time exists, if not them insert this value in DB
Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ public function getLastModificationTimestamp(): string|null
132
132
require_once __DIR__ .'/../../../sergeytsalkov/meekrodb/db.class.php ' ;
133
133
134
134
$ maxTimestamp = DB ::queryFirstField (
135
- 'SELECT MAX( GREATEST(created_at, updated_at)) AS timestamp
135
+ 'SELECT GREATEST(MAX( created_at), MAX( updated_at)) AS timestamp
136
136
FROM ' . prefixTable ('misc ' ) . '
137
137
WHERE type = %s ' ,
138
138
'admin '
You can’t perform that action at this time.
0 commit comments