|
@@ -73,6 +73,7 @@ if (!class_exists('user_logs')) {
|
|
|
* add user_logs
|
|
|
*/
|
|
|
public static function add($result) {
|
|
|
+ $array = [];
|
|
|
//prepare the array
|
|
|
$array['user_logs'][0]["timestamp"] = 'now()';
|
|
|
$array['user_logs'][0]["domain_uuid"] = $result['domain_uuid'];
|
|
@@ -97,7 +98,8 @@ if (!class_exists('user_logs')) {
|
|
|
$database = new database;
|
|
|
$database->app_name = 'authentication';
|
|
|
$database->app_uuid = 'a8a12918-69a4-4ece-a1ae-3932be0e41f1';
|
|
|
- $database->uuid($user_log_uuid);
|
|
|
+ if (strlen($user_log_uuid)>0)
|
|
|
+ $database->uuid($user_log_uuid);
|
|
|
$database->save($array, false);
|
|
|
$message = $database->message;
|
|
|
|