phpBMS

Changeset 770

Show
Ignore:
Timestamp:
01/21/10 18:33:00 (2 years ago)
Author:
brieb
Message:
  • Fixed parent display dropdown to properly handle nulls
Files:
1 modified

Legend:

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

    r737 r770  
    7474                                        ; 
    7575                                "; 
    76                                  
     76 
    7777                        $queryresult = $this->db->query($querystatement); 
    7878 
     
    110110                        //not set is acceptable 
    111111                        if(isset($variables["parentid"])){ 
    112                                  
     112 
    113113                                $uuid = "";// can still check for an invalid parentid even though the current uuid is bad 
    114114 
     
    176176                                        `uuid` != '".$uuid."' 
    177177                                        AND 
    178                                         `parentid` = '' 
     178                                        (`parentid` = '' OR `parentid` IS NULL) 
    179179                                        AND 
    180180                                        ( 
    181                                                 link=\"\" 
     181                                                link='' 
    182182                                                OR 
    183183                                                link IS NULL 
     
    217217 
    218218                        if(!$useUUID){ 
    219                                  
     219 
    220220                                $whereclause=$this->buildWhereClause(); 
    221221                                //menu.parentid must be a uuid and not an id. 
Scanned by Orvant Copyright © 2010 Kreotek, LLC. All Rights reserved.