X-Git-Url: https://git.bts.cx/cx.git/blobdiff_plain/8a7cb090b52893c49c169d4ba1419317251bfaaa..7eeae5c4183434a1cf7c0613b3dc8dd953b55810:/cx/lib/posts.php?ds=sidebyside diff --git a/cx/lib/posts.php b/cx/lib/posts.php index 3293ace..a7ebfa4 100644 --- a/cx/lib/posts.php +++ b/cx/lib/posts.php @@ -99,7 +99,8 @@ function cx_posts_add_post($site_id, $title, $slug, $date, $page, $draft, $nav_i post_data, post_data_version) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?);'; - cx_db_exec($sql, $site_id, $creation_time, $update_time, $slug, $date, $page, $draft, $nav_index, $title, $data, 1); + $id = cx_db_exec($sql, $site_id, $creation_time, $update_time, $slug, $date, $page, $draft, $nav_index, $title, $data, 1); + return $id; } function cx_posts_update_post($post_id, $title, $slug, $date, $page, $draft, $nav_index, $data) {