Glitch in tree function example in articles model of user guide
 
    
        
                
            
                
                    The tree function example has a minor glitch, in that, if no categories exist, the admin tree display in the articles section will throw an error. This is because $cat_id will never be assigned a value by the preceding while loop. 
Or was that intentional to keep us noobs on our toes?
See 
http://getfuelcms.com/user_guide/modules/tutorial#authors_model                 
                             
         
     
 
                 
             
        
Comments
$cat_id = -1;