--- adsense-for-bbpress/adsense.php	2009-01-29 22:15:02.000000000 +0530
+++ adsense-for-bbpress/adsense.php	2009-04-10 03:25:08.000000000 +0530
@@ -134,17 +134,19 @@ function bbad_configuration_page_add() {
 }
 
 function bbad_configuration_page_process() {
-	if(isset($_POST['submit'])) {
-		$bbad_options['author_name']=$_POST['author_name'];
-		$bbad_options['author_avatar']=$_POST['author_avatar'];
-
-		for($x=0;$x<10;$x++){
-			if (isset($_POST['ad_'.$x])) {$bbad_options['ad_'.$x]=$_POST['ad_'.$x];}
-			if (isset($_POST['opt_'.$x])) {$bbad_options['opt_'.$x]=$_POST['opt_'.$x];}
-		}
+	if(isset($_POST['submit'])) {
+		if ($_POST['action'] == 'update-bbad-configuration') {
+			$bbad_options['author_name']=$_POST['author_name'];
+			$bbad_options['author_avatar']=$_POST['author_avatar'];
+
+			for($x=0;$x<10;$x++){
+				if (isset($_POST['ad_'.$x])) {$bbad_options['ad_'.$x]=$_POST['ad_'.$x];}
+				if (isset($_POST['opt_'.$x])) {$bbad_options['opt_'.$x]=$_POST['opt_'.$x];}
+			}
 
-		bb_update_option('bbad_options',$bbad_options);
-		bb_admin_notice(__('Settings Saved'));
+			bb_update_option('bbad_options',$bbad_options);
+			bb_admin_notice(__('Settings Saved'));
+	}
 	}
 }

