From c1fcaed2ee8f05a5030fe4e8e211ca4eae7a9489 Mon Sep 17 00:00:00 2001
From: ftimme <ft@falkotimme.com>
Date: Tue, 11 Jun 2013 11:44:57 -0400
Subject: [PATCH] - Fixed FS#2921 - RBL list field in server config can not be empty.

---
 interface/web/sites/web_domain_list.php |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/interface/web/sites/web_domain_list.php b/interface/web/sites/web_domain_list.php
index 3520c28..feae9c8 100644
--- a/interface/web/sites/web_domain_list.php
+++ b/interface/web/sites/web_domain_list.php
@@ -44,12 +44,16 @@
 //* Check permissions for module
 $app->auth->check_module_permissions('sites');
 
-$app->uses('listform_actions');
+$app->load('listform_actions');
 
-// Limit the results to alias domains
-$app->listform_actions->SQLExtWhere = "type = 'vhost'";
 
-$app->listform_actions->onLoad();
+class list_action extends listform_actions {
+	
+}
 
+$list = new list_action;
+$list->SQLExtWhere = "type = 'vhost' AND parent_domain_id = '0'";
+$list->SQLOrderBy = 'ORDER BY domain';
+$list->onLoad();
 
 ?>
\ No newline at end of file

--
Gitblit v1.9.1