diff --git a/QnetDB.cpp b/QnetDB.cpp
index df36084..af7a72f 100644
--- a/QnetDB.cpp
+++ b/QnetDB.cpp
@@ -82,7 +82,6 @@ bool CQnetDB::UpdateLH(const char *callsign, const char *sfx, const char module,
{
if (NULL == db)
return false;
- printf("UpdateLH call=%s sfx=%s mod=%c ref='%s'\n", callsign, sfx, module, reflector);
std::string sql("REPLACE INTO LHEARD (callsign,sfx,module,reflector,lasttime) VALUES ('");
sql.append(callsign);
sql.append("','");
diff --git a/QnetGateway.cpp b/QnetGateway.cpp
index 6a9e84c..2a3a38b 100644
--- a/QnetGateway.cpp
+++ b/QnetGateway.cpp
@@ -1089,7 +1089,7 @@ void CQnetGateway::ProcessG2(const ssize_t g2buflen, const SDSVT &g2buf, const i
// no matter what, we will send this on if it is the closing frame
lastctrl = (0x3FU & g2buf.ctrl);
Gate2Modem[i].Write(g2buf.title, 27);
- if (source_sock >= 0) {
+ if (source_sock >= 0 && showLastHeard) {
std::string smartgroup;
if(ProcessG2Msg(g2buf.vasd.text, i, smartgroup)) {
qnDB.UpdateLH(lhcallsign.c_str(), lhsfx.c_str(), 'A'+i, smartgroup.c_str());
diff --git a/index.php b/index.php
index 3803a1e..6e66466 100644
--- a/index.php
+++ b/index.php
@@ -149,7 +149,7 @@ foreach($showlist as $section) {
break;
case 'LH':
echo 'Last Heard:
', "\n";
- $rstr = 'MyCall/Sfx Mod Via Time
';
+ $rstr = 'MyCall/Sfx Mod Via Time
';
echo str_replace(' ', ' ', $rstr), "\n";
$dbname = $cfgdir.'/'.GetCFGValue('dash_sql_filename');
$db = new SQLite3($dbname, SQLITE3_OPEN_READONLY);