DataObjects/Core_curr_rate.php
authorAlan Knowles <alan@roojs.com>
Tue, 20 Oct 2015 05:09:38 +0000 (13:09 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 20 Oct 2015 05:09:38 +0000 (13:09 +0800)
DataObjects/Core_curr_rate.php

index 4e63a04..8371fb2 100644 (file)
@@ -112,8 +112,8 @@ class Pman_Core_DataObjects_Core_curr_rate extends DB_DataObject
             
                 if ($ov->rate == $rate) {
                     // modify the old one to expire
             
                 if ($ov->rate == $rate) {
                     // modify the old one to expire
-                    $nv = clone($ov);
-                    $ov->to_dt = $nv->from_dt;
+                    $oo = clone($ov);
+                    $ov->to_dt = $nl->from_dt;
                     $ov->update($oo);
                     continue;
                 }
                     $ov->update($oo);
                     continue;
                 }