Index: branches/2.8.x/CHANGELOG
===================================================================
--- branches/2.8.x/CHANGELOG	(revision 1137)
+++ branches/2.8.x/CHANGELOG	(revision 1138)
@@ -11,6 +11,11 @@
 ! = Update/Change
 
 ------------------------------------- 2.8.1 -------------------------------------
+25-Aug-2009 Ruud Eisinga
+#	Fixed bug in droplets. Multiple droplets with the same parameter did not extract the new parameter.
+	(problem introduced by code optimisations for WB2.8) 
+#	Fixed usage of the depriciated (PHP 5.3.0) split() function in class.wb. (ticket #772)
+#	Fixed notice ob_end_clean..failed to delete buffer. (ticket #779)
 22-Aug-2009 Ruud Eisinga
 # 	Changed the default searchform name in the installer. (ticket #775)
 #	Fixed the recursive redirect problem when a page is called with a wrong language parm (ticket #780)
Index: branches/2.8.x/wb/framework/class.wb.php
===================================================================
--- branches/2.8.x/wb/framework/class.wb.php	(revision 1137)
+++ branches/2.8.x/wb/framework/class.wb.php	(revision 1138)
@@ -216,7 +216,7 @@
 
 	// Get the current users group ids
 	function get_groups_id() {
-		return split(",", $_SESSION['GROUPS_ID']);
+		return explode(",", $_SESSION['GROUPS_ID']);
 	}
 
 	// Get the current users group name
Index: branches/2.8.x/wb/index.php
===================================================================
--- branches/2.8.x/wb/index.php	(revision 1137)
+++ branches/2.8.x/wb/index.php	(revision 1138)
@@ -102,7 +102,7 @@
 ob_start();
 require(WB_PATH.'/templates/'.TEMPLATE.'/index.php');
 $output = ob_get_contents();
-ob_end_clean();
+if (ob_get_length() > 0) ob_end_clean();
 
 if(function_exists('evalDroplets')) { $output = evalDroplets($output); }
 if(function_exists('filter_frontend_output')) { $output = filter_frontend_output($output); }
Index: branches/2.8.x/wb/modules/droplets/info.php
===================================================================
--- branches/2.8.x/wb/modules/droplets/info.php	(revision 1137)
+++ branches/2.8.x/wb/modules/droplets/info.php	(revision 1138)
@@ -14,7 +14,7 @@
 $module_directory = 'droplets';
 $module_name = 'Droplets';
 $module_function = 'tool';
-$module_version = '1.0.1';
+$module_version = '1.0.2';
 $module_platform = '2.8.x';
 $module_author = 'Ruud and pcwacht';
 $module_license = 'GPL';
Index: branches/2.8.x/wb/modules/droplets/droplets.php
===================================================================
--- branches/2.8.x/wb/modules/droplets/droplets.php	(revision 1137)
+++ branches/2.8.x/wb/modules/droplets/droplets.php	(revision 1138)
@@ -3,12 +3,14 @@
 // $Id$
 
 /*
-*	@version	1.0
+*	@version	1.0.2
 *	@author		Ruud Eisinga (Ruud) John (PCWacht)
 *	@date		June 2009
 *
 *	droplets are small codeblocks that are called from anywhere in the template. 
-* 	To call a droplet just use [[dropletname]]. optional parameters for a droplet can be used like [[dropletname?parameter=value&parameter2=value]]
+* 	To call a droplet just use [[dropletname]]. optional parameters for a droplet can be used like [[dropletname?parameter=value&parameter2=value]]\
+*
+*   1.0.2, bugfix. Reused the evalDroplet function so the extracted parameters will be only available within the scope of the eval and cleared when ready.
 */
 
 function evalDroplets ($wb_page_data) {
@@ -37,8 +39,7 @@
 		if ($query_content && $query_content->numRows() > 0){
 			$fetch_content = $query_content->fetchRow();
 			$codedata = ($fetch_content['code']);
-			if(is_array($parameter)) extract($parameter, EXTR_SKIP);
-			$newvalue = eval($codedata);
+			$newvalue = evalDroplet($codedata, $parameter, $wb_page_data);
 			if ($newvalue == "" && !$newvalue === true) 
 				$newvalue = "<font color=\"red\">Error in: $match, no correct returnvalue.</font>";
 			if ($newvalue === true) 
@@ -48,4 +49,9 @@
 	}
 	return $wb_page_data;
 }
+
+function evalDroplet($droplet, $params, &$wb_page_data) {
+    if(is_array($params)) extract($params, EXTR_SKIP);
+	return eval($droplet);
+}
 ?>
\ No newline at end of file
