PluginProbe
Fluent Support – Helpdesk & Customer Support Ticket System / 2.4.5
Fluent Support – Helpdesk & Customer Support Ticket System v2.4.5
2.4.5 2.4.0 2.3.2 2.3.1 2.3.0 2.2.1 2.2.0 trunk 1.10.0 1.10.1 1.10.2 1.10.3 1.10.4 1.10.5 1.4.0 1.4.1 1.4.2 1.4.5 1.4.6 1.4.7 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 All 69 releases
← All changes | app/Models/AIActivityLogs.php +15 -0 1.10.1 → 2.4.5 View file →
@@ -17,8 +17,23 @@
17 17 $model->updated_at = current_time('mysql');
18 18 });
19 19 }
20 20
21 + /**
22 + * The table is created when an AI integration is first turned on, not on
23 + * activation, so readers check for it first.
24 + *
25 + * @return bool
26 + */
27 + public static function tableExists()
28 + {
29 + global $wpdb;
30 +
31 + $table = $wpdb->prefix . 'fs_ai_activity_logs';
32 +
33 + return $wpdb->get_var($wpdb->prepare('SHOW TABLES LIKE %s', $wpdb->esc_like($table))) === $table;
34 + }
35 +
21 36 public function person()
22 37 {
23 38 $class = __NAMESPACE__ . '\Person';
24 39