projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added inactive records support.
[fa-stable.git]
/
gl
/
includes
/
db
/
gl_db_currencies.inc
diff --git
a/gl/includes/db/gl_db_currencies.inc
b/gl/includes/db/gl_db_currencies.inc
index 0c386f8395bd9f923192e8cef9ade0b36dacaa4e..111b83dc8ee67a9612e055054a16a0d095d0ed92 100644
(file)
--- a/
gl/includes/db/gl_db_currencies.inc
+++ b/
gl/includes/db/gl_db_currencies.inc
@@
-53,9
+53,10
@@
function get_currency($curr_code)
//---------------------------------------------------------------------------------------------
//---------------------------------------------------------------------------------------------
-function get_currencies()
+function get_currencies(
$all=false
)
{
$sql = "SELECT * FROM ".TB_PREF."currencies";
{
$sql = "SELECT * FROM ".TB_PREF."currencies";
+ if (!$all) $sql .= " WHERE !inactive";
return db_query($sql, "could not get currencies");
}
return db_query($sql, "could not get currencies");
}