Skip to content

Commit a2a6147

Browse files
committed
Merge branch 'master' of https://github.com/Program-O/Program-O
2 parents c9fb2dd + 174d71f commit a2a6147

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chatbot/core/conversation/intialise_conversation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ function load_that($convoArr)
609609
$user_id = $convoArr['conversation']['user_id'];
610610
$bot_id = $convoArr['conversation']['bot_id'];
611611
$limit = $remember_up_to;
612-
$sql = "select `input`, `response` from `$dbn`.`conversation_log` where `user_id` = $user_id and `bot_id` = $bot_id order by `id` asc limit $limit;"; // desc
612+
$sql = "select `input`, `response` from `$dbn`.`conversation_log` where `user_id` = $user_id and `bot_id` = $bot_id order by `id` desc limit $limit;"; // desc
613613
runDebug(__FILE__, __FUNCTION__, __LINE__, "Getting conversation log entries for the current user. SQL:\n$sql", 3);
614614
$result = db_query($sql, $con);
615615
if ($result)

0 commit comments

Comments
 (0)