[Vtigercrm-commits] [vtiger development] #5838: 504 to 510 DBChanges migration script error

vtiger development vtiger-tickets at trac.vtiger.com
Sat Apr 18 14:38:54 EDT 2009


#5838: 504 to 510 DBChanges migration script error
----------------------------------------+-----------------------------------
 Reporter:  joebordes                   |       Owner:  developer 
     Type:  defect                      |      Status:  new       
 Priority:  unassigned                  |   Milestone:  5.1.0     
Component:  vtigercrm                   |     Version:  5.1.0-val1
 Keywords:  DBChanges migration script  |  
----------------------------------------+-----------------------------------
 lines 427 to 431 define the variable $desc if it is found in the database:
 {{{
 if($adb->num_rows($desc_id)>0){
         $desc = $adb->query_result($desc_id,0,'blockid');
         $desc_update = 'update vtiger_blocks set blocklabel
 ="LBL_DESCRIPTION",show_title = 0,sequence = 3 where blockid = ?';
         $desc_block_update = $adb->pquery($desc_update,array($desc));
 }
 }}}
 but on line 437 the $desc variable is used directly when it is possible
 that it be undefined

 {{{
 ExecuteQuery("update...nce=2,block=$desc where
 tabid=$d...ame='notecontent'");
 }}}

-- 
Ticket URL: <http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/5838>
vtiger development <http://trac.vtiger.com/>
vtigerCRM




More information about the vtigercrm-commits mailing list