View Issue Details

IDProjectCategoryView StatusLast Update
0005927mantisbtperformancepublic2005-07-23 02:16
ReporterMattB Assigned Tothraxisp  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product Version1.0.0a2 
Fixed in Version1.0.0rc1 
Summary0005927: null checking failure in user_get_accessible_subprojects (user_api.php)
Description

I've been trying to spped up Mantis as our DB and web servers are at remote locations. MySQL logging has shown that one particular SQL command is run over and over again. Further investigation shows that there's an error when checking if a cached array is null or not.

user_api.php, line 699. this always returns FALSE:

if ( null != $g_user_accessible_subprojects_cache

change to the below and it works perfectly:

if ( !is_null($g_user_accessible_subprojects_cache)

Additional Information

I'm running FC3, PHP 4.3.11, mantis 1.0.0.a2, apache 2.0.52-3.1

TagsNo tags attached.

Relationships

related to 0005889 closedthraxisp What's with all these queries 

Activities

thraxisp

thraxisp

2005-07-13 16:49

reporter   ~0010757

Fixed this and a number of similar constructs in CVS.

issues_rss.php -> 1.5
manage_proj_create_page.php -> 1.10
core/config_api.php -> 1.31
core/columns_api.php -> 1.10
core/custom_field_api.php -> 1.56
core/gpc_api.php -> 1.39
core/project_hierarchy_api.php -> 1.7
core/summary_api.php -> 1.40
core/user_api.php -> 1.104