View Issue Details

IDProjectCategoryView StatusLast Update
0009568mantisbtotherpublic2009-06-26 12:05
Reporterdeboutv Assigned Tothraxisp  
PrioritynormalSeverityblockReproducibilityalways
Status closedResolutionfixed 
Product Version1.2.0a2 
Summary0009568: config_get/config_set/config_get fails on the second config_get
Description

The following code fails for the array and is success for the string:

require_once( 'core.php' );

$t_test = config_get( 'main_menu_custom_options' );
print_r( $t_test );
$t_test[0][1] = 20;
config_set( 'main_menu_custom_options', $t_test );
$t_test = config_get( 'main_menu_custom_options' );
print_r( $t_test );

$t_test = config_get( 'default_home_page' );
echo $t_test . "\n";
$t_test .= '?test';
config_set( 'default_home_page', $t_test );
$t_test = config_get( 'default_home_page' );
echo $t_test . "\n";

Additional Information

The result of the code is:

Array
(
[0] => Array
(
[0] => plugins_pluginmanager_link
[1] => 10
[2] => plugins_page.php
)

)
my_view_page.php
my_view_page.php?test

One array is missing (the second one after the change of 10 by 20).

TagsNo tags attached.

Activities

thraxisp

thraxisp

2008-09-04 20:53

reporter   ~0019308

Last edited: 2008-09-04 21:05

fixed in Revision: 5539
http://mantisbt.svn.sourceforge.net/mantisbt/?rev=5539&view=rev

I'm leaving this open for now until users can test this.

grangeway

grangeway

2008-12-20 18:46

reporter   ~0020444

Hello,

Marking as resolved - no negative feedback since commit by thraxisp

Paul