XOOPS Cube Legacy base repository
Revision | 9bdaad10855461c97d776c3c2f1ef6c0000f046e (tree) |
---|---|
Time | 2013-02-09 10:54:30 |
Author | nao-pon <hypweb@gmai...> |
Commiter | nao-pon |
[admin_blocklist] fix variable initialization
@@ -163,14 +163,17 @@ class Legacy_BlockFilterForm extends Legacy_AbstractFilterForm | ||
163 | 163 | } |
164 | 164 | } |
165 | 165 | |
166 | + $selModGrpArr = null; | |
166 | 167 | if (isset($selmodArr) && isset($selgrpArr)) { |
167 | 168 | $selModGrpArr = array_intersect($selmodArr, $selgrpArr); |
168 | 169 | } elseif (isset($selmodArr)) { |
169 | 170 | $selModGrpArr = $selmodArr; |
170 | 171 | } elseif (isset($selgrpArr)) { |
171 | 172 | $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 | + } | |
174 | 177 | |
175 | 178 | // |
176 | 179 | $this->_mCriteria->add(new Criteria('visible', $this->_getVisible())); |