We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9705655 commit c7bdaaaCopy full SHA for c7bdaaa
system/common.php
@@ -232,7 +232,20 @@
232
233
// update session recordset (i.a. refresh timestamp)
234
$gCurrentSession->setValue('ses_reload', 0);
235
-$gCurrentSession->save();
+if ($gCurrentSession->isNewRecord()) {
236
+ // check if logging table exists
237
+ $sql = 'SELECT * FROM ' . TBL_LOG . ' LIMIT 1';
238
+ try {
239
+ $gDb->query($sql);
240
+ } catch (Throwable $e) {
241
+ //temporary disable logging
242
+ $gCurrentSession->setLoggingEnabled(false);
243
+ $gCurrentSession->save();
244
+ $gCurrentSession->setLoggingEnabled(true);
245
+ }
246
+} else {
247
248
+}
249
250
// create the necessary objects and parameters
251
0 commit comments