transmit the piwik api error message back to the user

This commit is contained in:
Antoine Beaupr�� 2014-11-21 17:49:59 +00:00
parent 9b90e39ec9
commit d8fe94d24b
1 changed files with 4 additions and 0 deletions

View File

@ -112,6 +112,10 @@ class m_piwik {
$user_creation_date = $user->date_registered;
return $db->query("INSERT INTO piwik_users (uid, login, created_date) VALUES ('$cuid', '$user_login', '$user_creation_date')");
}
else {
$err->raise('piwik', $api_data->message);
return FALSE;
}
} else { // api_data = false -> error is already filled
return FALSE;
}