[21030] Removing not used vars

Caeies <[email protected]> Wed, 10 Feb 2010 14:10:59 +0000
Newsgroups gmane.comp.web.phpgroupware.cvs
Message-ID <[email protected]>
Revision: 21030
          http://svn.sv.gnu.org/viewvc/?view=rev&root=phpgroupware&revision=21030
Author:   Caeies
Date:     2010-02-10 14:10:59 +0000 (Wed, 10 Feb 2010)
Log Message:
-----------
Removing not used vars

Modified Paths:
--------------
    modules/phpgwapi/trunk/inc/class.phpgw_soapval.inc.php
    modules/phpgwapi/trunk/inc/class.preferences.inc.php

Modified: modules/phpgwapi/trunk/inc/class.phpgw_soapval.inc.php
===================================================================
--- modules/phpgwapi/trunk/inc/class.phpgw_soapval.inc.php	2010-02-10 14:10:04 UTC (rev 21029)
+++ modules/phpgwapi/trunk/inc/class.phpgw_soapval.inc.php	2010-02-10 14:10:59 UTC (rev 21030)
@@ -269,7 +269,7 @@
 						if(is_array($v))
 						{
 							@reset($v);
-							while(list($a,$b) = @each($v))
+							while(list($a,) = @each($v))
 							/* foreach($v as $a => $b) */
 							{
 								if($a == "0")
@@ -352,7 +352,7 @@
 					if(is_array($soapval->value))
 					{
 						@reset($soapval->value);
-						while(list($k,$v) = @each($soapval->value))
+						while(list(,$v) = @each($soapval->value))
 						/* foreach($soapval->value as $k => $v) */
 						{
 							$xml .= $this->serializeval($v);
@@ -370,7 +370,7 @@
 				case 2:
 					// array
 					@reset($soapval->value);
-					while(list($null,$array_val) = @each($soapval->value))
+					while(list(,$array_val) = @each($soapval->value))
 					/* foreach($soapval->value as $array_val) */
 					{
 						$array_types[$array_val->type] = 1;

Modified: modules/phpgwapi/trunk/inc/class.preferences.inc.php
===================================================================
--- modules/phpgwapi/trunk/inc/class.preferences.inc.php	2010-02-10 14:10:04 UTC (rev 21029)
+++ modules/phpgwapi/trunk/inc/class.preferences.inc.php	2010-02-10 14:10:59 UTC (rev 21030)
@@ -607,7 +607,7 @@
 					$value = $this->db->db_addslashes(serialize($value));	// this addslashes is for the database
 					$app = $this->db->db_addslashes($app);
 
-					$this->db->query($sql = "INSERT INTO phpgw_preferences".
+					$this->db->query("INSERT INTO phpgw_preferences".
 							" (preference_owner,preference_app,preference_value)".
 							" VALUES ($account_id,'$app','$value')",__LINE__,__FILE__);
 				}