summaryrefslogtreecommitdiffstats
path: root/app/class
diff options
context:
space:
mode:
Diffstat (limited to 'app/class')
-rw-r--r--app/class/obj.class.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/class/obj.class.php b/app/class/obj.class.php
index 199529b..850184c 100644
--- a/app/class/obj.class.php
+++ b/app/class/obj.class.php
@@ -199,8 +199,8 @@ class obj extends table
*/
public function getMesgs_ordByDatetime() : array
{
- $query = "SELECT guid FROM objects WHERE objtype = 'mesg' AND " .
- "parent = '" . database::esc($this->guid) . "' ORDER BY created";
+ $query = "SELECT guid FROM objects WHERE (objtype = 'mesg' OR objtype = 'log') " .
+ "AND parent = '" . database::esc($this->guid) . "' ORDER BY created";
$res = database::query($query);
$mesgs = array();