We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8fc168b commit 7179789Copy full SHA for 7179789
Ajax/common/components/BaseComponent.php
@@ -68,13 +68,15 @@ protected function setParamCtrl($key, $value, $typeCtrl) {
68
}
69
70
public function setParams($params) {
71
- foreach ( $params as $k => $v ) {
72
- $method="set".ucfirst($k);
73
- if (method_exists($this, $method))
74
- $this->$method($v);
75
- else {
76
- $this->setParam($k, $v);
77
- trigger_error("`{$k}` doesn't exists!", E_USER_NOTICE);
+ if(\is_array($params)) {
+ foreach ($params as $k => $v) {
+ $method = "set" . ucfirst($k);
+ if (method_exists($this, $method))
+ $this->$method($v);
+ else {
+ $this->setParam($k, $v);
78
+ trigger_error("`{$k}` doesn't exists!", E_USER_NOTICE);
79
+ }
80
81
82
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments