Changeset 2320

Show
Ignore:
Timestamp:
12/19/10 13:01:16 (17 months ago)
Author:
nick_ramsay
Message:

[1.5] category-related edits.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/1.5/libs/PageHandling.php

    r2319 r2320  
    350350 
    351351                                        // if we're using categories and the category is not "all"... 
    352                                         if ($h->isActive('categories') && $h->post->category > 1) { 
     352                                        if (isset($h->vars['category']) && $h->post->category > 1) { 
    353353                                                $url .= $h->vars['category']->getCatSafeName($h, $h->post->category).'/'; 
    354354                                        } 
    355355 
    356356                                        $url .= $value.'/'; 
    357                                 } elseif ($key == 'category' && is_numeric($value)) { 
     357                                } elseif ($key == 'category' && is_numeric($value) && isset($h->vars['category'])) { 
    358358 
    359359                                        $url .= $key.'/'.$h->vars['category']->getCatSafeName($h, $value).'/';