aboutsummaryrefslogtreecommitdiff
path: root/h-source/Application/Include
diff options
context:
space:
mode:
Diffstat (limited to 'h-source/Application/Include')
-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
+}