From: Hypolite Petovan Date: Wed, 17 Oct 2018 00:06:44 +0000 (-0400) Subject: [statusnet] Fix Undefined variable: id X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2454a963e094ec34fb42e72a0c988898f9bd1bde;p=friendica-addons.git [statusnet] Fix Undefined variable: id --- diff --git a/statusnet/statusnet.php b/statusnet/statusnet.php index 3c6972e3..42c31d75 100644 --- a/statusnet/statusnet.php +++ b/statusnet/statusnet.php @@ -658,7 +658,7 @@ function statusnet_addon_admin(App $a, &$o) } } /* empty form to add new site */ - $id++; + $id = count($sitesform); $sitesform[] = [ 'sitename' => ["sitename[$id]", L10n::t("Site name"), "", ""], 'apiurl' => ["apiurl[$id]", "Api url", "", L10n::t("Base API Path \x28remember the trailing /\x29")],