Skip to content

Commit 23e8142

Browse files
Chris KacerguisChris Kacerguis
authored andcommitted
changed back to time() it should not have been a PHP function, but a SQL function. fixes chriskacerguis#548
1 parent aca3967 commit 23e8142

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

application/libraries/REST_Controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1037,7 +1037,7 @@ protected function _log_request($authorized = FALSE)
10371037
'params' => $this->_args ? ($this->config->item('rest_logs_json_params') === TRUE ? json_encode($this->_args) : serialize($this->_args)) : NULL,
10381038
'api_key' => isset($this->rest->key) ? $this->rest->key : '',
10391039
'ip_address' => $this->input->ip_address(),
1040-
'time' => now(), // Used to be: function_exists('now') ? now() : time()
1040+
'time' => time(),
10411041
'authorized' => $authorized
10421042
]);
10431043

0 commit comments

Comments
 (0)