You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$instance_record = $app->db->queryOneRecord("SELECT * FROM `sys_remoteaction` WHERE `action_param`='$primary_id' and `action_type`='$action_type' and `action_state`='pending'");
365
+
if ($instance_record['action_id'] >= 1) {
366
+
$this->server->fault('duplicate_action', "There is already a pending $action_type action");
367
+
returnfalse;
368
+
}
369
+
370
+
//* Save the record
371
+
if ($app->db->query("INSERT INTO `sys_remoteaction` SET `server_id` = '$server_id', `tstamp` = '$tstamp', `action_type` = '$action_type', `action_param` = '$primary_id', `action_state` = '$action_state'")) {
<pclass="margin"> Adds a new backup / restore task. Please note: <em>$action_type</em><!-- is either <em>backup_download_mail</em> or --> must be <em>backup_restore_mail</em></p>
<pclass="margin"> Gets list of all available mail backups. If no $primary_id (mail-domain-id) is given, all mail backups available on this server are read.</p>
0 commit comments