[statusnet] Fix Undefined variable: id

pull/753/head
Hypolite Petovan 2018-10-16 20:06:44 -04:00
parent fd3eb35c33
commit 2454a963e0
1 changed files with 1 additions and 1 deletions

View File

@ -658,7 +658,7 @@ function statusnet_addon_admin(App $a, &$o)
} }
} }
/* empty form to add new site */ /* empty form to add new site */
$id++; $id = count($sitesform);
$sitesform[] = [ $sitesform[] = [
'sitename' => ["sitename[$id]", L10n::t("Site name"), "", ""], 'sitename' => ["sitename[$id]", L10n::t("Site name"), "", ""],
'apiurl' => ["apiurl[$id]", "Api url", "", L10n::t("Base API Path \x28remember the trailing /\x29")], 'apiurl' => ["apiurl[$id]", "Api url", "", L10n::t("Base API Path \x28remember the trailing /\x29")],