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

Commit 87eb001

Browse files
author
Bruno
committed
[UPD]: modif for pull request
1 parent 615eaea commit 87eb001

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/client.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function textRequest($text, $options=null)
3333
{
3434
if ($options === null) {
3535
$token = $this->token;
36-
} else if (array_key_exists($options, 'token')) {
36+
} else if (array_key_exists('token', $options)) {
3737
$token = $options['token'];
3838
}
3939

@@ -96,7 +96,7 @@ public function fileRequest($file, $options=null)
9696
{
9797
if ($options === null) {
9898
$token = $this->token;
99-
} else if (array_key_exists($options, 'token')) {
99+
} else if (array_key_exists('token', $options)) {
100100
$token = $options['token'];
101101
}
102102

src/conversation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function nextActions() {
7474
public function memory($name=null) {
7575
if ($name === null) {
7676
return ($this->memory);
77-
} else if (array_key_exists($this->memory, $name)) {
77+
} else if (array_key_exists($name, $this->memory)) {
7878
return ($this->memory->$name);
7979
} else {
8080
return (null);

0 commit comments

Comments
 (0)