PluginProbe
Activity Logs, User Activity Tracking, Multisite Activity Log from Logtivity / 3.3.10
Activity Logs, User Activity Tracking, Multisite Activity Log from Logtivity v3.3.10
3.3.10 3.3.9 3.3.8 trunk 1.0 1.1.0 1.10.0 1.11.0 1.11.1 1.12.0 1.13.0 1.14.0 1.15.0 1.16.0 1.17.0 1.17.1 1.18.0 1.19.0 1.2.0 1.20.0 1.20.1 1.3.0 1.3.1 1.4.0 1.5.0 All 68 releases
← All changes | Loggers/Formidable/Logtivity_Formidable.php +5 -2 3.3.9 → 3.3.10 View file →
@@ -110,13 +110,15 @@
110 110 }
111 111
112 112 } catch (Throwable $e) {
113 113 // Ignore
114 + unset($e);
114 115 }
115 116
116 117 $log->send();
117 118 } catch (Throwable $e) {
118 - error_log($e);
119 + // Keep Formidable submissions working if optional logging metadata fails.
120 + unset($e);
119 121 }
120 122 }
121 123
122 124 private function maybeStoreField($log, $key, $value)
@@ -129,9 +131,10 @@
129 131 }
130 132 }
131 133
132 134 if ($this->shouldStoreField($field->type, $field->field_key, $value)) {
133 - if ($value = $this->maybeLogFormValue($field->type, $value)) {
135 + $value = $this->maybeLogFormValue($field->type, $value);
136 + if ($value) {
134 137 $log->addMeta($field->name, $value);
135 138 }
136 139 }
137 140 }