diff options
author | xue <> | 2006-05-31 01:00:38 +0000 |
---|---|---|
committer | xue <> | 2006-05-31 01:00:38 +0000 |
commit | bf900e824f2c661df6380fd0360c13377da58bae (patch) | |
tree | 283c3eb5d38d64684fdc5aedab44dcf28752c7f3 /demos/blog/protected/Common | |
parent | e3b10414305b181aa4e39e211cf6b0e9bf992518 (diff) |
Fixed a few issues with the blog system.
Diffstat (limited to 'demos/blog/protected/Common')
-rw-r--r-- | demos/blog/protected/Common/BlogDataModule.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/demos/blog/protected/Common/BlogDataModule.php b/demos/blog/protected/Common/BlogDataModule.php index 9c074260..b8f2b7d9 100644 --- a/demos/blog/protected/Common/BlogDataModule.php +++ b/demos/blog/protected/Common/BlogDataModule.php @@ -282,8 +282,8 @@ class BlogDataModule extends TModule $title=sqlite_escape_string($post->Title);
$content=sqlite_escape_string($post->Content);
$sql="INSERT INTO tblPosts
- (author_id,create_time,title,content,status)
- VALUES ({$post->AuthorID},{$post->CreateTime},'$title','$content',{$post->Status})";
+ (author_id,create_time,modify_time,title,content,status)
+ VALUES ({$post->AuthorID},{$post->CreateTime},{$post->ModifyTime},'$title','$content',{$post->Status})";
$this->query($sql);
$post->ID=sqlite_last_insert_rowid($this->_db);
foreach($catIDs as $catID)
|