properly deal with undefined errors

This commit is contained in:
Antoine Beaupr�� 2014-07-16 15:43:43 +00:00
parent e197b2bdf3
commit 4f0aa82d20
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ $infos = $piwik->user_add($account_name);
if (!$infos)
{
$error = $err->errstr();
//if (isset($error) && $error) {
if (!$error) { $error = 'undefined error from piwik'; }
echo "<p class=\"alert alert-danger\">$error</p>";
if (isset($fatal) && $fatal) {
include_once("foot.php");