[0000583] Unique Reference check fails when running manual Revaluation of Currency
[fa-stable.git] / includes / references.inc
index 0c11ebee3defacaa1d96bcdfb61a25a862f08160..16781175b5922cc221d6894594becbb38b77a740 100644 (file)
@@ -114,10 +114,10 @@ function is_new_reference($ref, $type)
        $type = db_escape($type);
        
        if ($db_ref == null) { // journal or bank trans store references in refs table
-               $db_ref = TB_PREF."refs";
+               $db_name = TB_PREF."refs";
                $db_type = 'type';
                $db_trans = 'id';
-               $rb_ref = 'reference';
+               $db_ref = 'reference';
        }
 
        if ($db_type != null) {