From 48e8598cf22a5b9ac6cbc314638037f9aca04a1b Mon Sep 17 00:00:00 2001 From: Agnibho Mondal Date: Mon, 7 Jun 2021 00:56:55 +0530 Subject: [PATCH] Minor --- lib/db.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/db.php b/lib/db.php index c6cdde3..1cfdb5a 100644 --- a/lib/db.php +++ b/lib/db.php @@ -271,7 +271,7 @@ class DB extends SQLite3 { function getDrugs($pid){ global $log; if(!checkAccess("treatment", "dbGet")) return false; - $stmt=$this->prepare("SELECT rowid,* FROM treatment WHERE pid=:pid AND omit!=:omit ORDER BY omit,start;"); + $stmt=$this->prepare("SELECT rowid,* FROM treatment WHERE pid=:pid AND omit!=:omit ORDER BY omit,drug,start;"); $stmt->bindValue(":pid", $pid); $stmt->bindValue(":omit", -1); $result=$stmt->execute(); -- 2.39.5