Changeset 287 for trunk/TranslationList.php
- Timestamp:
- Dec 22, 2009, 10:40:43 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/TranslationList.php
r286 r287 205 205 206 206 $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'; 214 213 215 214 WriteQuests('SELECT *, (SELECT `user`.`user` FROM `user` WHERE `user`.`id` = `'.$Table.'`.`user`) AS `User` FROM `'.$Table.'` WHERE '.$WhereUsers, '', 'users'); … … 317 316 { 318 317 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 = ''; 320 320 321 321 $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.