Changeset 252 for trunk/team.php


Ignore:
Timestamp:
Jul 16, 2009, 9:57:41 AM (15 years ago)
Author:
maron
Message:

Oprava a možnost zrušení vyhledáváného výrazuv týmech

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/team.php

    r249 r252  
    2121
    2222  if(array_key_exists('search', $_GET))  $_SESSION['search'] = ' WHERE `name` LIKE "%'.$_GET['search'].'%" OR `description` LIKE "%'.$_GET['search'].'%"';
    23    
     23    else if(!array_key_exists('search', $_SESSION)) $_SESSION['search'] = '';
     24    if (array_key_exists('search', $_GET) and ($_GET['search'] == '')) $_SESSION['search'] = '';
    2425    /*
    2526    if(array_key_exists('team', $_GET))
Note: See TracChangeset for help on using the changeset viewer.