| 303 | | $section = @$params['section']; |
| 304 | | if (!isset($section)) |
| 305 | | { |
| 306 | | $section_of = array( |
| 307 | | 'category' => 'categories', |
| 308 | | 'tags' => 'tags', |
| 309 | | 'list' => 'list', |
| 310 | | 'search' => 'search', |
| 311 | | ); |
| 312 | | |
| 313 | | foreach ($section_of as $param => $s) |
| 314 | | { |
| 315 | | if (isset($params[$param])) |
| 316 | | { |
| 317 | | $section = $s; |
| 318 | | } |
| 319 | | } |
| 320 | | |
| 321 | | if (!isset($section)) |
| 322 | | { |
| 323 | | $section = 'none'; |
| 324 | | } |
| 325 | | } |
| | 303 | $section = @$params['section']; |
| | 304 | if (!isset($section)) |
| | 305 | { |
| | 306 | $section_of = array( |
| | 307 | 'category' => 'categories', |
| | 308 | 'tags' => 'tags', |
| | 309 | 'list' => 'list', |
| | 310 | 'search' => 'search', |
| | 311 | ); |
| | 312 | |
| | 313 | foreach ($section_of as $param => $s) |
| | 314 | { |
| | 315 | if (isset($params[$param])) |
| | 316 | { |
| | 317 | $section = $s; |
| | 318 | } |
| | 319 | } |
| | 320 | |
| | 321 | if (!isset($section)) |
| | 322 | { |
| | 323 | $section = 'none'; |
| | 324 | } |
| | 325 | } |