$sql="SELECT count(action_id) as number FROM sys_remoteaction WHERE action_state = 'pending' AND action_type = 'backup_restore' AND action_param = '$backup_id'";
$tmp=$app->db->queryOneRecord($sql);
$sql="SELECT count(action_id) as number FROM sys_remoteaction WHERE action_state = 'pending' AND action_type = 'backup_restore' AND action_param = ?";
$tmp=$app->db->queryOneRecord($sql,$backup_id);
if($tmp['number']==0){
$message.=$wb['restore_info_txt'];
$sql="INSERT INTO sys_remoteaction (server_id, tstamp, action_type, action_param, action_state, response) ".
...
...
@@ -98,22 +98,15 @@ class plugin_backuplist extends plugin_base {
$sql="SELECT count(action_id) as number FROM sys_remoteaction WHERE action_state = 'pending' AND action_type = 'backup_delete' AND action_param = '$backup_id'";
$tmp=$app->db->queryOneRecord($sql);
$sql="SELECT count(action_id) as number FROM sys_remoteaction WHERE action_state = 'pending' AND action_type = 'backup_delete' AND action_param = ?";
$tmp=$app->db->queryOneRecord($sql,$backup_id);
if($tmp['number']==0){
$message.=$wb['delete_info_txt'];
$sql="INSERT INTO sys_remoteaction (server_id, tstamp, action_type, action_param, action_state, response) ".