From f661437fa904d6a59ee9cc3b3591d39488073fdc Mon Sep 17 00:00:00 2001 From: Nick Date: Thu, 7 Nov 2019 16:53:52 -0600 Subject: [PATCH] Cleanup downloads --- src/db.php | 5 +---- src/msqur.php | 1 - 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/db.php b/src/db.php index 33fa264..697e554 100644 --- a/src/db.php +++ b/src/db.php @@ -297,7 +297,6 @@ class DB public function getMSQForDownload($id) { - if (!$this->connect()) return null; $xml = FALSE; @@ -312,12 +311,10 @@ class DB $result = $st->fetch(PDO::FETCH_ASSOC); $st->closeCursor(); $xml = $result['xml']; - if (DEBUG) debug('Cached, returning HTML.'); } else { - echo "
No result for $id
"; - echo '
Invalid MSQ err 2
'; + echo "404 no such MSQ"; return null; } } diff --git a/src/msqur.php b/src/msqur.php index 2d2c8fb..277d7bd 100644 --- a/src/msqur.php +++ b/src/msqur.php @@ -45,7 +45,6 @@ class Msqur public function getMSQForDownload($id) { - return $this->db->getMSQForDownload($id); }