Added getting site config from DB
This commit is contained in:
@@ -223,7 +223,10 @@ function sqlConditions($db,$Conditions=false,$Tables=false) {
|
||||
|
||||
# Add the SITE ID
|
||||
if (! is_array($Tables) || count($Tables) == 1) {
|
||||
$where .= sprintf('site_id=%s',DEFAULT_SITE);
|
||||
if ($Tables == 'setup')
|
||||
$where .= sprintf('id=%s',DEFAULT_SITE);
|
||||
else
|
||||
$where .= sprintf('site_id=%s',DEFAULT_SITE);
|
||||
|
||||
} else {
|
||||
$tbarr = array('A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V');
|
||||
|
Reference in New Issue
Block a user