Misc many fixes
This commit is contained in:
@@ -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);
|
||||
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user