Skip to content

Commit

Permalink
deleted unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
naao committed Feb 8, 2013
1 parent 3d31f1a commit 60ab9fb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions html/modules/legacy/admin/forms/BlockFilterForm.class.php
Expand Up @@ -133,7 +133,7 @@ function fetch()

// added criteria of block module link by naao
$selectedMid = (int) $root->mContext->mRequest->getRequest('selmid');
if (isset($selectedMid) && $selectedMid !== 0) {
if ($selectedMid !== 0) {
$handler =& xoops_getmodulehandler('block_module_link');
$criteria = new CriteriaCompo(new Criteria('module_id', $selectedMid));
$criteria->add(new Criteria('module_id',0),'OR');
Expand All @@ -145,9 +145,7 @@ function fetch()
}
}
$this->_mCriteria->add(new Criteria('bid', $selmodArr, 'IN'));
unset($handler, $criteria, $selmod_Obj, $selmodArr);
}
unset($selectedMid);

//
$this->_mCriteria->add(new Criteria('visible', $this->_getVisible()));
Expand Down

0 comments on commit 60ab9fb

Please sign in to comment.