Skip to content

Commit

Permalink
Fixed duplicate title bug that caused crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Langlais authored and Evan Langlais committed Apr 4, 2017
1 parent 3449371 commit ebe2a8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EnigmaX/Classes/EnigmaMenuItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public static EnigmaMenuItem idToMenuItem(int id)
DBConnect db = new DBConnect();
MySqlCommand conn = new MySqlCommand("SELECT * FROM MenuItems WHERE id = @id LIMIT 1");
conn.Parameters.AddWithValue("@id", id.ToString());
List<Dictionary<string, string>> result = db.ReadCommand(conn, "title", "title", "description", "price", "category", "printingStation");
List<Dictionary<string, string>> result = db.ReadCommand(conn, "title", "description", "price", "category", "printingStation");

if (result.Count > 0)
{
Expand Down

0 comments on commit ebe2a8c

Please sign in to comment.