From 6a9681622c3506bd8d051a57e86a15f2f460da30 Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Sun, 24 Jul 2016 18:02:04 +0900 Subject: [PATCH] Also auto-generate the regdate field if it is empty --- modules/ncenterlite/ncenterlite.controller.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/ncenterlite/ncenterlite.controller.php b/modules/ncenterlite/ncenterlite.controller.php index 821ac4ff7..fb50a53c3 100644 --- a/modules/ncenterlite/ncenterlite.controller.php +++ b/modules/ncenterlite/ncenterlite.controller.php @@ -998,6 +998,12 @@ class ncenterliteController extends ncenterlite { $args->notify = $this->_getNotifyId($args); } + + // 날짜가 없는 경우 자동 생성 + if (!$args->regdate) + { + $args->regdate = date('YmdHis'); + } if($anonymous == TRUE) {