Merged last changes from stable.
[fa-stable.git] / includes / references.inc
index 7f79fbc7157901fc954712e5f7cf370bcf4060e9..6a8c7af2d0f87044206bc2fb0f243697e90b1051 100644 (file)
@@ -101,8 +101,10 @@ class references
 }
 
 //----------------------------------------------------------------------------
-
-function is_new_reference($ref, $type)
+//
+//     Check if reference was not used so far (for other transaction than $trans_no)
+//
+function is_new_reference($ref, $type, $trans_no=0)
 {
        $db_info = get_systype_db_info($type);
        $db_name = $db_info[0];