Revision 1072
Added by Matthias over 15 years ago
save_post.php | ||
---|---|---|
111 | 111 |
$publisheduntil=0; |
112 | 112 |
|
113 | 113 |
// Update row |
114 |
$database->query("UPDATE ".TABLE_PREFIX."mod_news_posts SET group_id = '$group_id', title = '$title', link = '$post_link', content_short = '$short', content_long = '$long', commenting = '$commenting', active = '$active', published_when = '$publishedwhen', published_until = '$publisheduntil', posted_when = '".mktime()."', posted_by = '".$admin->get_user_id()."' WHERE post_id = '$post_id'");
|
|
114 |
$database->query("UPDATE ".TABLE_PREFIX."mod_news_posts SET group_id = '$group_id', title = '$title', link = '$post_link', content_short = '$short', content_long = '$long', commenting = '$commenting', active = '$active', published_when = '$publishedwhen', published_until = '$publisheduntil', posted_when = '".time()."', posted_by = '".$admin->get_user_id()."' WHERE post_id = '$post_id'"); |
|
115 | 115 |
|
116 | 116 |
// Check if there is a db error, otherwise say successful |
117 | 117 |
if($database->is_error()) { |
Also available in: Unified diff
replaced all remaining mktime() with time(), except from third party scripts