Fixes Script loading.

Some cleanup on array Clear
Misc errors
This commit is contained in:
hondacrx
2017-12-24 16:37:15 -05:00
parent 9937d1e421
commit c7219c7098
15 changed files with 30 additions and 13 deletions
+4 -1
View File
@@ -364,7 +364,10 @@ namespace Framework.Database
{
MySqlErrorCode code = (MySqlErrorCode)ex.Number;
if (ex.InnerException != null)
code = (MySqlErrorCode)((MySqlException)ex.InnerException).Number;
{
if (ex.InnerException is MySqlException)
code = (MySqlErrorCode)((MySqlException)ex.InnerException).Number;
}
switch (code)
{