View Issue Details

IDProjectCategoryView StatusLast Update
0009815mantisbtbugtrackerpublic2008-12-16 08:38
Reportervboctor Assigned Tothraxisp  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
PlatformwindowsOSXP pro 
Product Version1.1.1 
Fixed in Version1.1.6 
Summary0009815: gpc_get_string_array() sometimes returns non-arrays
Description

The symptoms of this issue was fixed by 0009017, but the root cause was not identified. This issue is to identify the root cause and whether it still exists in the latest code base.


Originally reported in mantis forum under HELP

SYSTEM WARNING
implode() [function.implode]: Bad arguments.

Please use the "Back" button in your web browser to return to the previous page. There you can correct whatever problems were identified in this error or select another action. You can also click an option from the menu bar to go directly to a new section.

Results from debuging:

Full path: C:\Inetpub\mantis-1.1.1\core\gpc_api.php
Line: 120
Variable Value Type
p_var_name custom_field_2 string
p_custom_field_type 7 string
p_default Coding string
t_values Coding string

Filename Line Function Args
C:\Inetpub\mantis-1.1.1\core\gpc_api.php 120 implode ( '|', 'Coding' )
C:\Inetpub\mantis-1.1.1\bug_report.php

Thanx vboctor for your help!

TagsNo tags attached.

Relationships

child of 0009017 closedjreese SYSTEM WARNING implode() [function.implode]: Bad arguments. 

Activities

thraxisp

thraxisp

2008-12-04 22:15

reporter   ~0020245

Fixed in release 1.1.6 and 1.2.x

The default values for the field were not necessarily an array, and is returned as is. The fix converts the default to an array, if set. The checks for setting the field were also simplified.