X-Git-Url: https://git.pterodactylus.net/?p=fms.git;a=blobdiff_plain;f=src%2Fhttp%2Fpages%2Fhomepage.cpp;h=a64efd2fb8cafab4f0563bccbaf39d82909e96c4;hp=b295f451653fff51139f91f89f21293f0d71de46;hb=023b2219068d481cd6a300982427c99bacd88a12;hpb=3751f10f7127ae0905aa0b52dc6de1c782a38c99
diff --git a/src/http/pages/homepage.cpp b/src/http/pages/homepage.cpp
index b295f45..a64efd2 100644
--- a/src/http/pages/homepage.cpp
+++ b/src/http/pages/homepage.cpp
@@ -32,7 +32,7 @@ const std::string HomePage::GeneratePage(const std::string &method, const std::m
content+="
";
bool showgenericupdate=true;
- SQLite3DB::Statement st=m_db->Prepare("SELECT Major, Minor, Release, PageKey FROM tblFMSVersion ORDER BY Major DESC, Minor DESC, Release DESC;");
+ SQLite3DB::Statement st=m_db->Prepare("SELECT Major, Minor, Release, PageKey FROM tblFMSVersion ORDER BY Major DESC, Minor DESC, Release DESC LIMIT 1;");
st.Step();
if(st.RowReturned())
{
@@ -58,7 +58,7 @@ const std::string HomePage::GeneratePage(const std::string &method, const std::m
if(showgenericupdate)
{
- content+="Check for new versions at the FMS Freesite
";
+ content+="Check for new versions at the FMS Freesite
";
}
content+="Use these pages to administer your FMS installation.";