View Issue Details

IDProjectCategoryView StatusLast Update
0003895mantisbtfeaturepublic2004-07-07 18:22
Reportervirtuetek Assigned Tograngeway  
PrioritynormalSeveritytweakReproducibilityalways
Status closedResolutionfixed 
Product Version0.18.3 
Fixed in Version0.19.0a1 
Summary0003895: Icon_api.php - Needs NONE constant added in "constants_inc.php" where "directions" are defined.
Description

I stumbled across this error (see attached PNG) when showing the PHP notice errors:

    SYSTEM NOTICE: Use of undefined constant NONE - assumed 'NONE'
Two Changes to Fix This Issue
  1. The cause of this is because the file "constants_inc.php" is missing a constant in the "directions" area called NONE.
    Code:
    define( 'NONE', 103 );
  2. In the "icon_api.php" file add NONE and the image to the array for variable $g_sort_icon_array.
    Code:

    Sort direction to icon mapping

        $g_sort_icon_arr = array (
                ASC        => 'up.gif',
                DESC       => 'down.gif',
                NONE      => 'blank.gif'
        );

I hope this helps. No one will notice this error with the option $g_show_notices turned OFF. But better to fix it then not.

TagsNo tags attached.
Attached Files

Activities

grangeway

grangeway

2004-07-02 14:08

reporter   ~0005871

This issue appears to be resolved in cvs, and will be fixed in 0.19