transmit the piwik api error message back to the user
This commit is contained in:
parent
9b90e39ec9
commit
d8fe94d24b
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue