]> git.mxchange.org Git - friendica-addons.git/commitdiff
[statusnet] Fix Undefined variable: id
authorHypolite Petovan <hypolite@mrpetovan.com>
Wed, 17 Oct 2018 00:06:44 +0000 (20:06 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Wed, 17 Oct 2018 00:06:44 +0000 (20:06 -0400)
statusnet/statusnet.php

index 3c6972e38addf0c57974ddb682c79289ccb448dd..42c31d7581e403e4f529b5abb33f91a08338a477 100644 (file)
@@ -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")],