[21029] Fixing typos, looking at the code ...

Caeies <[email protected]> Wed, 10 Feb 2010 14:10:08 +0000
Newsgroups gmane.comp.web.phpgroupware.cvs
Message-ID <[email protected]>
Revision: 21029
          http://svn.sv.gnu.org/viewvc/?view=rev&root=phpgroupware&revision=21029
Author:   Caeies
Date:     2010-02-10 14:10:04 +0000 (Wed, 10 Feb 2010)
Log Message:
-----------
Fixing typos, looking at the code ... need to be fixed 

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

Modified: modules/phpgwapi/trunk/inc/class.custom_fields.inc.php
===================================================================
--- modules/phpgwapi/trunk/inc/class.custom_fields.inc.php	2010-02-10 14:09:08 UTC (rev 21028)
+++ modules/phpgwapi/trunk/inc/class.custom_fields.inc.php	2010-02-10 14:10:04 UTC (rev 21029)
@@ -152,7 +152,7 @@
 			$attrib['column_name'] = $this->db->db_addslashes(strtolower($attrib['column_name']));
 			$attrib['input_text'] = $this->db->db_addslashes($attrib['input_text']);
 			$attrib['statustext'] = $this->db->db_addslashes($attrib['statustext']);
-			$attrib['default'] =  isset($arrib['default']) ? $this->db->db_addslashes($attrib['default']) : '';
+			$attrib['default'] =  isset($attrib['default']) ? $this->db->db_addslashes($attrib['default']) : '';
 			$attrib['helpmsg'] = $this->db->db_addslashes($attrib['helpmsg']);
 
 			$sql = "SELECT * FROM phpgw_cust_attribute where appname='{$attrib['appname']}' AND location='{$attrib['location']}' AND column_name = '{$attrib['column_name']}'";
@@ -762,7 +762,7 @@
 		{
 			$appname = $this->db->db_addslashes($appname);
 			$location = $this->db->db_addslashes($location);
-			$ttrib_id = (int)$attrib_id;
+			$attrib_id = (int)$attrib_id;
 			
 			$sql = "SELECT * FROM phpgw_cust_choice WHERE appname='$appname' AND location='$location' AND attrib_id = $attrib_id";
 			$this->db->query($sql,__LINE__,__FILE__);
@@ -861,6 +861,7 @@
 
 			if(!$location || !$appname)
 			{
+				//XXX Caeies 2010 : Dooh ? what the purpose of this ???
 				return 	$receipt['error'][] = array('msg' => lang('location or appname is missing'));
 			}