Fixed warnings related to empty item/customer/supplier selector in search modes.
[fa-stable.git] / purchasing / includes / db / suppliers_db.inc
index d66c89fc7941fb20c3912d1175eb0413b366fb2a..602b86bf60049a52f50d3c385785510480909acb 100644 (file)
@@ -187,7 +187,7 @@ function get_supplier_currency($supplier_id)
        $result = db_query($sql, "Retreive currency of supplier $supplier_id");
 
        $myrow=db_fetch_row($result);
-       return $myrow[0];
+       return $myrow ? $myrow[0] : get_company_currency();
 }
 
 function get_suppliers_search($supplier)