Changeset 16 for lists/SystemList.php
- Timestamp:
- Oct 21, 2008, 9:05:41 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lists/SystemList.php
r11 r16 18 18 } 19 19 20 function ListSystemListOnEdit($Parameters) 21 { 22 global $Database; 23 24 $DbResult = $Database->query('SELECT `TableName` FROM `'.$Parameters['ListTableName'].'` WHERE ItemId='.$Parameters['ItemId'].' ORDER BY `Id` DESC LIMIT 1,1'); 25 $DbRow = $DbResult->fetch_assoc(); 26 if($DbRow['TableName'] != $Parameters['TableName']) 27 $Database->query('RENAME TABLE `'.$DbRow['TableName'].'` TO `'.$Parameters['TableName'].'`'); 28 } 29 20 30 ?>
Note:
See TracChangeset
for help on using the changeset viewer.