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 7012392 commit 25d4d32Copy full SHA for 25d4d32
server/lib/classes/cron.d/100-mailbox_stats_hourly.inc.php
@@ -53,6 +53,12 @@ public function onBeforeRun() {
53
public function onRunJob() {
54
global $app, $conf;
55
56
+ // Skip if no last access info needs to be shown.
57
+ $mail_config = $app->getconf->get_global_config('mail');
58
+ if (!isset($mail_config['mailbox_show_last_access']) || $mail_config['mailbox_show_last_access'] != 'y') {
59
+ return;
60
+ }
61
+
62
$sql = "SELECT mailuser_id FROM mail_user WHERE server_id = ?";
63
$records = $app->db->queryAllRecords($sql, $conf['server_id']);
64
if(count($records) > 0) {
0 commit comments