phpBMS

Changeset 737

Show
Ignore:
Timestamp:
01/08/10 12:51:54 (2 years ago)
Author:
nate
Message:
  • Fixed menu's verifyVariables function with regards to its handling of parentids.
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/phpbms/modules/base/include/menu.php

    r703 r737  
    7474                                        ; 
    7575                                "; 
    76  
     76                                 
    7777                        $queryresult = $this->db->query($querystatement); 
    7878 
     
    110110                        //not set is acceptable 
    111111                        if(isset($variables["parentid"])){ 
    112  
    113                                 $uuid = 0;// can still check for an invalid parentid even though the current uuid is bad 
     112                                 
     113                                $uuid = "";// can still check for an invalid parentid even though the current uuid is bad 
    114114 
    115115                                //use the current id if it exists (A menu record cannot be its own parent) 
     
    133133                                case "cat": 
    134134                                        $variables["link"] = ""; 
    135                                         $variables["parentid"] = 0; 
     135                                        $variables["parentid"] = ""; 
    136136                                break; 
    137137                                case "search": 
     
    166166 
    167167                function displayParentDropDown($selectedpid, $uuid){ 
    168  
    169                         //if($uuid == "") 
    170                         //      $uuid = 0; 
    171168 
    172169                        $querystatement = " 
     
    179176                                        `uuid` != '".$uuid."' 
    180177                                        AND 
    181                                         `parentid` = 0 
     178                                        `parentid` = '' 
    182179                                        AND 
    183180                                        ( 
phpBMS vulnerability assesment provided by Orvant Inc. Copyright © 2010 Kreotek, LLC. All Rights reserved.