Skip to content

Commit 831d97a

Browse files
committed
Undefined index fix
1 parent c904bc0 commit 831d97a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/codebird.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1700,7 +1700,7 @@ protected function _getMultipartRequestFromParams($method_template, $border, $pa
17001700
* @return mixed
17011701
*/
17021702
protected function _checkForFiles($method_template, $key, $value) {
1703-
if (!in_array($key, self::$_possible_files[$method_template])) {
1703+
if (!array_key_exists($method_template, self::$_possible_files) || !in_array($key, self::$_possible_files[$method_template])) {
17041704
return false;
17051705
}
17061706
$data = $this->_buildBinaryBody($value);

0 commit comments

Comments
 (0)