Fixed the crash mentioned in #1295.

This commit is contained in:
Kenneth Skovhede
2015-02-15 21:51:48 +01:00
parent 1a431a5f88
commit 48414d4dc5
+4 -1
View File
@@ -944,7 +944,10 @@ namespace Duplicati.Server.WebServer
var o = new Newtonsoft.Json.Linq.JObject();
// Add application wide settings
o.Add("ApplicationOptions", new Newtonsoft.Json.Linq.JArray(Program.DataConnection.Settings));
o.Add("ApplicationOptions", new Newtonsoft.Json.Linq.JArray(
from n in Program.DataConnection.Settings
select Newtonsoft.Json.Linq.JObject.FromObject(n)
));
try
{