Changeset 1861 for trunk/include/functions_calendar.inc.php
- Timestamp:
- Feb 27, 2007, 2:56:16 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions_calendar.inc.php
r1820 r1861 2 2 // +-----------------------------------------------------------------------+ 3 3 // | PhpWebGallery - a PHP based picture gallery | 4 // | Copyright (C) 2003-2006 PhpWebGallery Team - http://phpwebgallery.net | 5 // +-----------------------------------------------------------------------+ 6 // | branch : BSF (Best So Far) 7 // | file : $RCSfile$ 4 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | 5 // +-----------------------------------------------------------------------+ 6 // | file : $Id$ 8 7 // | last update : $Date$ 9 8 // | last modifier : $Author$ … … 35 34 $inner_sql = ' FROM ' . IMAGES_TABLE; 36 35 37 if ($page['section']=='categories' or 38 ( isset($page['category']) and is_numeric($page['category']) ) ) 36 if ($page['section']=='categories') 39 37 { // we will regenerate the items by including subcats elements 40 38 $page['items'] = array(); … … 42 40 INNER JOIN '.IMAGE_CATEGORY_TABLE.' ON id = image_id'; 43 41 44 if ( isset($page['category']) and is_numeric($page['category']))42 if ( isset($page['category']) ) 45 43 { 46 44 $sub_ids = array_diff( 47 get_subcat_ids(array($page['category'] )),45 get_subcat_ids(array($page['category']['id'])), 48 46 explode(',', $user['forbidden_categories']) 49 47 );
Note: See TracChangeset
for help on using the changeset viewer.