diff --git a/_class/class_training.php b/_class/class_training.php index c7b607a..efea7c1 100644 --- a/_class/class_training.php +++ b/_class/class_training.php @@ -89,8 +89,13 @@ class training { return $this->tr_locked; } - public function get_tr_price() { - return $this->tr_price; + public function get_tr_price($formatted = false) { + if (!$formatted) { + return $this->tr_price; + } + else { + return number_format($this->tr_price, 0, ',', ' '); + } } public function get_tr_deleted() {