typo in toValue
authorAlan <alan@roojs.com>
Mon, 8 Aug 2022 02:13:10 +0000 (10:13 +0800)
committerAlan <alan@roojs.com>
Mon, 8 Aug 2022 02:13:10 +0000 (10:13 +0800)
DB/DataObject.php

index 5cfac26..0beddb0 100644 (file)
@@ -4841,7 +4841,7 @@ class DB_DataObject extends DB_DataObject_Overload
                     return '';
                 } 
                 if (empty($format)) {
-                    return $this->col;
+                    return $this->$col;
                 }
                 require_once 'Date.php';
                 $x = new Date($this->$col);