Changeset 430 for trunk/TranslationList.php
- Timestamp:
- Apr 8, 2010, 8:39:54 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/TranslationList.php
r405 r430 265 265 global $Table; 266 266 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']; 269 269 else $Search = ''; 270 270 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 272 273 273 274 WriteQuests($sql);
Note:
See TracChangeset
for help on using the changeset viewer.