aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2018-09-15 01:01:48 +0200
committerMax Kostikov <max@kostikov.co>2018-09-15 01:01:48 +0200
commit85d8225cc061f8654f70e879d0afca680c734a02 (patch)
treea79f31fe692dc5abf211caa41fc756f1daf1a012
parent6360dee12560050b32adebdd4432c0ba4c59cee2 (diff)
downloadvolse-hubzilla-85d8225cc061f8654f70e879d0afca680c734a02.tar.gz
volse-hubzilla-85d8225cc061f8654f70e879d0afca680c734a02.tar.bz2
volse-hubzilla-85d8225cc061f8654f70e879d0afca680c734a02.zip
less data in select
-rw-r--r--include/message.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/message.php b/include/message.php
index 4c59f601c..2ac22c0ba 100644
--- a/include/message.php
+++ b/include/message.php
@@ -511,7 +511,7 @@ function private_messages_drop($channel_id, $messageitem_id, $drop_conversation
);
if (! $z) {
// Get new first message...
- $r = q("SELECT * FROM mail WHERE conv_guid = '%s' AND channel_id = %d ORDER BY id ASC LIMIT 1",
+ $r = q("SELECT mid FROM mail WHERE conv_guid = '%s' AND channel_id = %d ORDER BY id ASC LIMIT 1",
dbesc($x[0]['conv_guid']),
intval($channel_id)
);