properly deal with undefined errors
This commit is contained in:
parent
e197b2bdf3
commit
4f0aa82d20
|
@ -55,7 +55,7 @@ $infos = $piwik->user_add($account_name);
|
||||||
if (!$infos)
|
if (!$infos)
|
||||||
{
|
{
|
||||||
$error = $err->errstr();
|
$error = $err->errstr();
|
||||||
//if (isset($error) && $error) {
|
if (!$error) { $error = 'undefined error from piwik'; }
|
||||||
echo "<p class=\"alert alert-danger\">$error</p>";
|
echo "<p class=\"alert alert-danger\">$error</p>";
|
||||||
if (isset($fatal) && $fatal) {
|
if (isset($fatal) && $fatal) {
|
||||||
include_once("foot.php");
|
include_once("foot.php");
|
||||||
|
|
Loading…
Reference in New Issue