aboutsummaryrefslogtreecommitdiff
path: root/h-source/Application/Include/distributions.php
diff options
context:
space:
mode:
authorIan Gilfillan <ian@greenman.co.za>2016-07-19 19:24:50 +0000
committerIan Gilfillan <ian@greenman.co.za>2016-07-19 19:24:50 +0000
commite8a65561680b518e29bd96004ef132cdb1db913f (patch)
treee581f0a8b1479a92221ebe4e4a9d4f3cdeb201f6 /h-source/Application/Include/distributions.php
parent07eb5eccfd5260722ca74162e189c2bd5e8750a4 (diff)
Only allow active distributions to be added, increase visible issues
Diffstat (limited to 'h-source/Application/Include/distributions.php')
-rw-r--r--h-source/Application/Include/distributions.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/h-source/Application/Include/distributions.php b/h-source/Application/Include/distributions.php
index 048d1d9..e8c61f0 100644
--- a/h-source/Application/Include/distributions.php
+++ b/h-source/Application/Include/distributions.php
@@ -25,6 +25,8 @@ class Distributions
public static $allowed = array();
+ public static $allowed_active = array();
+
public static function getList()
{
return implode(' , ',array_keys(self::$allowed));
@@ -36,6 +38,7 @@ class Distributions
$distros = new DistrosModel();
self::$allowed = $distros->clear()->toList("clean_name","full_name")->orderBy("id_order")->send();
+ self::$allowed_active = $distros->clear()->where(array('active'=>'1'))->toList("clean_name","full_name")->orderBy("id_order")->send();
}
public static function getName($distList = '')
@@ -73,7 +76,7 @@ class Distributions
{
$str = "<div class='dist_checkboxes_hidden_box'>";
$str .= "<div class='dist_checkboxes_hidden_box_inner'>";
- foreach (self::$allowed as $value => $label)
+ foreach (self::$allowed_active as $value => $label)
{
$str .= "<div class=\"hidden_box_item\"><input class=\"hidden_box_input $value\" type=\"checkbox\" name=\"$value\" value=\"$value\"/> $label</div>";
}
@@ -85,4 +88,4 @@ class Distributions
return $str;
}
-} \ No newline at end of file
+}