Ignore:
Timestamp:
Apr 8, 2010, 8:39:54 PM (15 years ago)
Author:
george
Message:
  • Opraveno: V nabídce alternativních překladů jiných nenabízej nenabízet nedokončené překlady.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/TranslationList.php

    r405 r430  
    265265  global $Table;
    266266 
    267   if(array_key_exists('ID', $_GET)) $Search = $_GET['ID'];
    268   else if(array_key_exists('ID', $_POST)) $Search = $_POST['ID'];
     267  if(array_key_exists('ID', $_GET) and is_numeric($_GET['ID'])) $Search = $_GET['ID'];
     268  else if(array_key_exists('ID', $_POST) and is_numeric($_POST['ID'])) $Search = $_POST['ID'];
    269269  else $Search = '';
    270270 
    271   $sql = 'SELECT *, (SELECT `User`.`Name` FROM `User` WHERE `User`.`ID` = `'.$Table.'`.`User`) AS `UserName` FROM `'.$Table.'` WHERE `Entry` LIKE "'.$Search.'"';
     271  $sql = 'SELECT *, (SELECT `User`.`Name` FROM `User` WHERE `User`.`ID` = `'.$Table.'`.`User`) AS `UserName` FROM `'.$Table.'` WHERE (`Entry` LIKE "'.$Search.'")'.
     272  ' AND ((`Language` = 0) OR ((`Complete` = 1) AND (`Language` != 0)))'; // Do not show uncompleted user translation
    272273   
    273274  WriteQuests($sql);
Note: See TracChangeset for help on using the changeset viewer.