From e7c6c7867aafb6ced43ce765c689a5ebeaed1646 Mon Sep 17 00:00:00 2001 From: inga-lovinde <52715130+inga-lovinde@users.noreply.github.com> Date: Mon, 12 Jul 2010 16:08:02 +0000 Subject: [PATCH] Fixed a bug in AllPostsHandler --- IISMainHandler/handlers/response/AllPostsHandler.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/IISMainHandler/handlers/response/AllPostsHandler.cs b/IISMainHandler/handlers/response/AllPostsHandler.cs index aaa5cc5..50ffab3 100644 --- a/IISMainHandler/handlers/response/AllPostsHandler.cs +++ b/IISMainHandler/handlers/response/AllPostsHandler.cs @@ -26,7 +26,7 @@ namespace FLocal.IISHandler.handlers.response { context.userSettings.postsPerPage, 1 ); - IEnumerable posts = + IEnumerable posts = Post.LoadByIds( from stringId in Config.instance.mainConnection.LoadIdsByConditions( Post.TableSpec.instance, @@ -44,7 +44,8 @@ namespace FLocal.IISHandler.handlers.response { ) } ) - select Post.LoadById(int.Parse(stringId)); + select int.Parse(stringId) + ); XElement[] result = new XElement[] { new XElement("posts",