Remove negative actions from the best content filter module
This commit is contained in:
parent
edb987c8d0
commit
e79acc5f18
@ -18,7 +18,15 @@ class BestFilterModule extends Gdn_Module {
|
|||||||
parent::__construct($Sender);
|
parent::__construct($Sender);
|
||||||
|
|
||||||
$ActionModel = Yaga::ActionModel();
|
$ActionModel = Yaga::ActionModel();
|
||||||
$this->Data = $ActionModel->Get();
|
$actions = $ActionModel->Get();
|
||||||
|
|
||||||
|
foreach($actions as $index => $action) {
|
||||||
|
if($action->AwardValue < 0) {
|
||||||
|
unset($actions[$index]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->Data = $actions;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user