|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-07-29 21:02 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 01 10:00:01 2025 UTC |
Description: ------------ The following line was not being interpreted properly in php5-STABLE-200505181234: new HTML('a',array('href'=>'?action=addService&billed_services[account_id]='. $_REQUEST['billed_services']['account_id']?$_REQUEST['billed_services']['account_id'] : $_REQUEST['accounts']['id']),'Add Service'); The array href element value was being passed as NULL, I corrected by adding () around the tertiary statement : new HTML('a',array('href'=>'?action=addService&billed_services[account_id]='. ($_REQUEST['billed_services']['account_id']?$_REQUEST['billed_services']['account_id']:$_REQUEST['accounts']['id'])),'Add Service'); Reproduce code: --------------- new HTML('a',array('href'=>'?action=addService&billed_services[account_id]='. $_REQUEST['billed_services']['account_id']?$_REQUEST['billed_services']['account_id'] : $_REQUEST['accounts']['id']),'Add Service'); Expected result: ---------------- array('href'=>'?action=addService&billed_services[account_id]='.either or val) Actual result: -------------- array('href'=>NULL)