Skip to content

Commit

Permalink
Fix read issue with GetContentFolder (#2980)
Browse files Browse the repository at this point in the history
  • Loading branch information
LtRipley36706 authored May 8, 2020
1 parent 49fbf03 commit 8aa419d
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion Source/ACE.Server/Program_DbUpdates.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,18 @@ private static string GetContentFolder()
sqlConnect.Open();
var sqlReader = sqlCommand.ExecuteReader();

var content_folder = sqlReader.HasRows ? sqlReader.GetString(0) : @".\Content";
var content_folder = "";

if (sqlReader.HasRows)
{
while (sqlReader.Read())
{
content_folder = sqlReader.GetString(0);
break;
}
}
else
content_folder = @".\Content";

sqlReader.Close();
sqlCommand.Connection.Close();
Expand Down

0 comments on commit 8aa419d

Please sign in to comment.