My favorites | Sign in
Project Logo
                
New issue | Search
for
| Advanced search | Search tips
Issue 26: Section Editor unable to add pages, produced DB error
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  stephen.yeargin
Type-Defect
Priority-Medium
Milestone-Release0.7


Sign in to add a comment
 
Reported by stephen.yeargin, Jul 16, 2008
Reported by WeGods and Pat. Function was receiving an list of arguments
instead of the single indexed array. Patched in R136.

Index: siteadmin/section-edit.php
===================================================================
--- siteadmin/section-edit.php	(revision 135)
+++ siteadmin/section-edit.php	(revision 136)
@@ -61,7 +61,7 @@
 	$section['priority'] = $_POST['priority'];
 	$section['feed_image'] = $_POST['feed_image'];	
 
-	$stat =
cm_add_section($name,$editor,$editor_title,$editor_email,$url,$sidebar,$feed_image,$priority);
+	$stat = cm_add_section($section);
 
 	if ($stat) {
 		header("Location: $pmodule.php?msg=added");

Comment 1 by stephen.yeargin, Jul 17, 2008
Cleaned up the code a bit in R137, added a last_insert_id() command to retrieve the
ID for use in the section URL.
Sign in to add a comment

Hosted by Google Code