Changeset 468 for trunk/Common/Log.php
- Timestamp:
- Dec 16, 2012, 10:46:34 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/Log.php
r438 r468 7 7 function NewRecord($Module, $Operation, $Value = '') 8 8 { 9 $this->Database->insert('Log', array('Time' => 'NOW()', 'User' => $this->System->Modules['User']->User['Id'], 'Module' => $Module, 'Operation' => $Operation, 'Value' => $Value)); 9 if(array_key_exists('User', $this->System->Modules) and 10 array_key_exists('Id', $this->System->Modules['User']->User)) 11 $UserId = $this->System->Modules['User']->User['Id']; 12 else $UserId = NULL; 13 $this->Database->insert('Log', array('Time' => 'NOW()', 14 'User' => $UserId, 'Module' => $Module, 15 'Operation' => $Operation, 'Value' => $Value)); 10 16 //echo($this->Database->LastQuery); 11 17 }
Note:
See TracChangeset
for help on using the changeset viewer.