Made method name searching case insensitive
This commit is contained in:
parent
3d5e0baee9
commit
596fca4dc9
|
@ -38,7 +38,7 @@ class TLMethod extends TLParams
|
||||||
|
|
||||||
public function find_by_method($method)
|
public function find_by_method($method)
|
||||||
{
|
{
|
||||||
$key = array_search($method, $this->method);
|
$key = array_search(strtolower($method), array_map('strtolower', $this->method));
|
||||||
|
|
||||||
return ($key === false) ? false : [
|
return ($key === false) ? false : [
|
||||||
'id' => $this->id[$key],
|
'id' => $this->id[$key],
|
||||||
|
|
Loading…
Reference in New Issue
Block a user