X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=gl%2Fincludes%2Fdb%2Fgl_db_currencies.inc;h=111b83dc8ee67a9612e055054a16a0d095d0ed92;hb=0b253e5e0d23400838d3bfb4f27fb3fb2637b3ab;hp=0c386f8395bd9f923192e8cef9ade0b36dacaa4e;hpb=8273b6b981c008c7968a7f7c8eaea640d453c3f2;p=fa-stable.git diff --git a/gl/includes/db/gl_db_currencies.inc b/gl/includes/db/gl_db_currencies.inc index 0c386f83..111b83dc 100644 --- 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"; + if (!$all) $sql .= " WHERE !inactive"; return db_query($sql, "could not get currencies"); }