Skip to content
This repository was archived by the owner on Aug 12, 2022. It is now read-only.

Commit 89de8ac

Browse files
committed
[UPD] Modif converse
1 parent 05e1173 commit 89de8ac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Conversation.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function joinedReplies($separator = ' ')
5454
*/
5555
public function action()
5656
{
57-
return ($this->action || null);
57+
return ($this->action ? $this->action : null);
5858
}
5959

6060
/**
@@ -72,7 +72,7 @@ public function nextAction()
7272
*/
7373
public function nextActions()
7474
{
75-
return ($this->nextActions || []);
75+
return ($this->nextActions ? $this->nextActions : []);
7676
}
7777

7878
/**
@@ -103,7 +103,7 @@ static public function setMemory($token, $conversation_token, $memory)
103103

104104
$request = \Requests::put(Constants::API_ENDPOINT_CONVERSATION, $headers, json_encode($params));
105105
$res = (json_decode($request->body));
106-
return ($res->{'results'}->{'memory'});
106+
return ($res->results->memory);
107107
}
108108

109109
/**

0 commit comments

Comments
 (0)