Misc many fixes

This commit is contained in:
Deon George
2011-09-17 20:45:08 +10:00
parent 52074d239b
commit 7180e01dcf
18 changed files with 162 additions and 55 deletions

View File

@@ -152,6 +152,7 @@ function CORE_database_search($VAR,$construct,$type) {
# Get any static vars to search
$join_list = '';
$pre = AGILE_DB_PREFIX;
/*
if (! empty($VAR['static_relation']) && count($VAR['static_relation']>0)) {
while (list($idx,$value) = each($VAR['static_relation'])) {
if ($value != '') {
@@ -168,7 +169,6 @@ function CORE_database_search($VAR,$construct,$type) {
}
}
/*
# standard where list
$q .= $join_list . $where_list ." ".AGILE_DB_PREFIX."account.site_id = " . $db->qstr(DEFAULT_SITE);

View File

@@ -765,6 +765,7 @@ return false;
####################################################################
### Get all the associated STATIC RELATION records
return false;
$sql = 'SELECT * FROM ' . AGILE_DB_PREFIX . 'static_relation WHERE
site_id = ' . $db->qstr(DEFAULT_SITE) . ' AND
module_id = ' . $db->qstr($module_id) .' ORDER BY sort_order';
@@ -1031,6 +1032,7 @@ return false;
$module_id = $result->fields['id'];
return false;
####################################################################
### Get all the associated STATIC RELATION records
@@ -1197,6 +1199,7 @@ return false;
$module_id = $result->fields['id'];
return false;
####################################################################
### Get all the associated STATIC RELATION records