Changeset 773
- Timestamp:
- Jan 2, 2016, 12:19:23 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Finance/Manage.php
r761 r773 204 204 $DbResult = $this->Database->select($Table, '*', '(`ChangeAction` IS NOT NULL) AND '. 205 205 '(`ChangeTime` <= "'.TimeToMysqlDateTime($Time).'") ORDER BY `ChangeTime` ASC'); 206 while($Service = $DbResult->fetch_a rray())206 while($Service = $DbResult->fetch_assoc()) 207 207 { 208 208 if($Service['ChangeAction'] == 'add') … … 211 211 unset($Service['ChangeReplaceId']); 212 212 unset($Service['ChangeAction']); 213 unset($Service['ChangeTime']); 213 214 $this->Database->insert($Table, $Service); 214 215 } else … … 219 220 $ReplaceId = $Service['ChangeReplaceId']; 220 221 unset($Service['ChangeReplaceId']); 221 $this->Database->update($Table, 'Id='.$ReplaceId, $Service); 222 unset($Service['ChangeTime']); 223 $this->Database->update($Table, '`Id`='.$ReplaceId, $Service); 222 224 } else 223 225 if($Service['ChangeAction'] == 'delete')
Note:
See TracChangeset
for help on using the changeset viewer.