]> git.mxchange.org Git - friendica.git/commitdiff
Fix SQL syntax bug in mod message
authorAlexandre Alapetite <alexandre@alapetite.fr>
Sun, 7 May 2017 19:39:00 +0000 (21:39 +0200)
committerAlexandre Alapetite <alexandre@alapetite.fr>
Sun, 7 May 2017 19:39:00 +0000 (21:39 +0200)
mod/message.php

index c32d5f1dd928c057bfa2b66378f309f4eedd6fc0..76f675f19be2955be49762bcccb127c9fccd7397 100644 (file)
@@ -351,7 +351,7 @@ function message_content(App $a) {
 
                $o .= $header;
 
-               $r = q("SELECT count(*) AS `total` FROM `mail`, ANY_VALUE(`created`) AS `created`
+               $r = q("SELECT count(*) AS `total`, ANY_VALUE(`created`) AS `created` FROM `mail`
                        WHERE `mail`.`uid` = %d GROUP BY `parent-uri` ORDER BY `created` DESC",
                        intval(local_user())
                );