mirror of
https://github.com/WenPai-org/wp-china-yes.git
synced 2025-08-08 06:56:08 +08:00
fix:使用isset判断对象属性是否存在,而不是array_key_exists
This commit is contained in:
parent
39735249ee
commit
5d8b6437ba
1 changed files with 1 additions and 1 deletions
2
vendor/loco-translate/src/mvc/View.php
vendored
2
vendor/loco-translate/src/mvc/View.php
vendored
|
@ -156,7 +156,7 @@ class Loco_mvc_View implements IteratorAggregate {
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function has( $prop ){
|
public function has( $prop ){
|
||||||
return array_key_exists($prop,$this->scope);
|
return isset($this->scope[$prop]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue