diff --git a/ZKuP/Notifications.xaml.cs b/ZKuP/Notifications.xaml.cs index 7ac7f13..28b2ae9 100644 --- a/ZKuP/Notifications.xaml.cs +++ b/ZKuP/Notifications.xaml.cs @@ -100,7 +100,7 @@ namespace ZKuP IntToBool iTb = new IntToBool(); //SQL.WriteSQL($"INSERT INTO {MainWindow.table}.notification (Username, Visitor, SMS, SMSRepeat) VALUES ('{Environment.UserName}', '{cBVisitor.SelectedValue.ToString()}', '{tbSMS.Text}', '{iTb.ConvertBack(rbRepeatYes.IsChecked.Value, typeof(int), null, null)}')"); - SQL.CreateAndWriteSQL($"INSERT INTO {MainWindow.table}.notification (Username, Visitor, SMS, SMSRepeat) VALUES (@UserName, @cBVisitor, @tbSMS, @iTb", new List() + SQL.CreateAndWriteSQL($"INSERT INTO {MainWindow.table}.notification (Username, Visitor, SMS, SMSRepeat) VALUES (@UserName, @cBVisitor, @tbSMS, @iTb)", new List() { new MySqlParameter("@UserName", Environment.UserName), new MySqlParameter("@cBVisitor", cBVisitor.SelectedValue.ToString()),