Ignore:
Timestamp:
Dec 22, 2009, 10:40:43 AM (15 years ago)
Author:
george
Message:
  • Opraveno: Kontrola zaslání položek formuláře při zadávání slov ve slovníku.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/TranslationList.php

    r286 r287  
    205205 
    206206  $WhereUsers = '';   
    207   for($i = 0; $i < Count($users); $i++)
    208   {
    209     if($WhereUsers <> '') $WhereUsers .= ' OR `User` = '.$users[$i];
    210       else $WhereUsers .= ' `User` = '.$users[$i];
    211   }
    212   if($WhereUsers == '') $WhereUsers = '0';
    213  
     207  foreach($users as $Index => $User)
     208  {
     209    if($WhereUsers <> '') $WhereUsers .= ' OR `User` = '.$User;
     210      else $WhereUsers .= ' `User` = '.$User;
     211  }
     212  if($WhereUsers == '') $WhereUsers = '0'; 
    214213 
    215214  WriteQuests('SELECT *, (SELECT `user`.`user` FROM `user` WHERE `user`.`id` = `'.$Table.'`.`user`) AS `User` FROM `'.$Table.'` WHERE '.$WhereUsers, '', 'users');
     
    317316{
    318317  if(array_key_exists('ID', $_GET)) $Search = $_GET['ID'];
    319   else $Search = $_POST['ID'];
     318  else if(array_key_exists('ID', $_POST)) $Search = $_POST['ID'];
     319  else $Search = '';
    320320 
    321321  $sql = 'SELECT *, (SELECT `user`.`user` FROM `user` WHERE `user`.`id` = `'.$Table.'`.`user`) AS `User` FROM `'.$Table.'` WHERE `entry` LIKE "'.$Search.'"';
Note: See TracChangeset for help on using the changeset viewer.