Major work to domain and hosting

Minor updates for ADSL services
Updates to Sort::MAsort()
Move core OSB items under application/
Moved ACCOUNT functions under application
Minor updates to task
This commit is contained in:
Deon George
2011-09-28 16:46:22 +10:00
parent 147d035e46
commit 130a87aa9a
199 changed files with 1536 additions and 10742 deletions

View File

@@ -223,7 +223,7 @@ function sqlConditions($db,$Conditions=false,$Tables=false) {
# Add the SITE ID
if (! is_array($Tables) || count($Tables) == 1) {
if ($Tables == 'setup')
if (in_array($Tables,array('setup','currency','tax')))
$where .= sprintf('id=%s',DEFAULT_SITE);
else
$where .= sprintf('site_id=%s',DEFAULT_SITE);

View File

@@ -169,6 +169,7 @@ class CORE_list {
}
public function format_currency_decimal($number,$currency_id,$decimals=DEFAULT_DECIMAL_PLACE) {
return ($number);
if (empty($number))
return 0;
if (empty($currency_id))