Skip to content
Snippets Groups Projects
Commit fe400603 authored by Jared Hancock's avatar Jared Hancock
Browse files

content: Update content_id after creating new content

parent 1b111a58
Branches
No related tags found
No related merge requests found
...@@ -273,7 +273,11 @@ class Page { ...@@ -273,7 +273,11 @@ class Page {
return false; return false;
} }
// TODO: Update `content_id` $sql = 'UPDATE '.PAGE_TABLE.' SET `content_id`=`id`'
.' WHERE id='.db_input($id);
if (!db_query($sql))
return false;
return $id; return $id;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment