• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

XOOPS Cube Legacy base repository


Commit MetaInfo

Revision9bdaad10855461c97d776c3c2f1ef6c0000f046e (tree)
Time2013-02-09 10:54:30
Authornao-pon <hypweb@gmai...>
Commiternao-pon

Log Message

[admin_blocklist] fix variable initialization

Change Summary

Incremental Difference

--- a/html/modules/legacy/admin/forms/BlockFilterForm.class.php
+++ b/html/modules/legacy/admin/forms/BlockFilterForm.class.php
@@ -163,14 +163,17 @@ class Legacy_BlockFilterForm extends Legacy_AbstractFilterForm
163163 }
164164 }
165165
166+ $selModGrpArr = null;
166167 if (isset($selmodArr) && isset($selgrpArr)) {
167168 $selModGrpArr = array_intersect($selmodArr, $selgrpArr);
168169 } elseif (isset($selmodArr)) {
169170 $selModGrpArr = $selmodArr;
170171 } elseif (isset($selgrpArr)) {
171172 $selModGrpArr = $selgrpArr;
172- }
173- $this->_mCriteria->add(new Criteria('bid', $selModGrpArr, 'IN'));
173+ }
174+ if (is_array($selModGrpArr)) {
175+ $this->_mCriteria->add(new Criteria('bid', $selModGrpArr, 'IN'));
176+ }
174177
175178 //
176179 $this->_mCriteria->add(new Criteria('visible', $this->_getVisible()));