From dc1be042027b9dd03ebeeb1ea0759cbb801c9e02 Mon Sep 17 00:00:00 2001 From: hartvig Date: Tue, 11 Jan 2011 10:24:39 -0100 Subject: [PATCH] Work items: 29848 --- umbraco/datalayer/Utility/Installer/DefaultInstallerUtility.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/umbraco/datalayer/Utility/Installer/DefaultInstallerUtility.cs b/umbraco/datalayer/Utility/Installer/DefaultInstallerUtility.cs index f3ea0758a1..05c71d202c 100644 --- a/umbraco/datalayer/Utility/Installer/DefaultInstallerUtility.cs +++ b/umbraco/datalayer/Utility/Installer/DefaultInstallerUtility.cs @@ -198,7 +198,7 @@ namespace umbraco.DataLayer.Utility.Installer if (!String.IsNullOrEmpty(v.Table) && !String.IsNullOrEmpty(v.Field) && !String.IsNullOrEmpty(v.Value)) { IRecordsReader reader = SqlHelper.ExecuteReader(string.Format("SELECT {0} FROM {1} WHERE {0}={2}", v.Field, v.Table, v.Value)); - if (!reader.HasRecords) + if (!reader.Read()) continue; } else if (String.IsNullOrEmpty(v.Table))