Skip to content

Commit a4f3adc

Browse files
committed
just commited that .. next I went in the activation/eanable event for the other modules I hadn't added that code to them yet either (that sets the status to 1) .. so adding that to them now
1 parent 95159e4 commit a4f3adc

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/Plugin.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,11 @@ public static function loadProcessing(GenericEvent $event)
8080
$headers .= 'Content-type: text/html; charset=UTF-8'.PHP_EOL;
8181
$headers .= 'From: '.TITLE.' <'.EMAIL_FROM.'>'.PHP_EOL;
8282
admin_mail($subject, $email, $headers, false, 'admin/ssl_created.tpl');
83+
$db->query("select * from queue_log where history_section='".self::$module."order' and history_type='{$serviceInfo[$settings['PREFIX'].'_id']}' and history_new_value=0");
84+
if ($db->num_rows() > 0) {
85+
$db->next_record(MYSQL_ASSOC);
86+
$db->query("update queue_log set history_new_value=1 where history_id='{$db->Record['history_id']}'");
87+
}
8388
})->setReactivate(function ($service) {
8489
$serviceTypes = run_event('get_service_types', false, self::$module);
8590
$serviceInfo = $service->getServiceInfo();

0 commit comments

Comments
 (0)