ID:               33921
 Updated by:       [EMAIL PROTECTED]
 Reported By:      rolf at winmutt dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Scripting Engine problem
 Operating System: Linux
 PHP Version:      5CVS-2005-07-29 (dev)
 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php




Previous Comments:
------------------------------------------------------------------------

[2005-07-29 19:05:36] rolf at winmutt dot com

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)


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=33921&edit=1

Reply via email to