Index: img_assist.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/img_assist/img_assist.module,v
retrieving revision 1.68
diff -b -U3 -r1.68 img_assist.module
--- img_assist.module	13 Feb 2007 22:54:39 -0000	1.68
+++ img_assist.module	15 Feb 2007 19:19:43 -0000
@@ -552,17 +552,16 @@
  * Interface and controller for adding images. It simply calls node_add('image');
  */
 function img_assist_upload() {
-
 	if (module_exists('image') && user_access('create images')) {
 		$edit = $_POST['edit'];
 		$op = $_POST['op'];

 		switch ($op) {
 			case t('Submit'):
-				$output .= img_assist_node_add('image', $op); // use a custom function so we can control the redirect
+				$output .= img_assist_node_add('image'); // use a custom function so we can control the redirect
 				break;
 			default:
-				$output .= node_add('image'); // use default node_add function
+				$output .= img_assist_node_add('image'); // use a custom function so we can control the redirect
 		}
 		// on other img_assist_pages I've added the javascript using the body onload attribute,
 		// but for this page will also need the collapse functions and setting the body onload
