devshort

Unnamed repository; edit this file 'description' to name the repository.
git clone git://code.clttr.info/devshort.git
Log | Files | Refs | README | LICENSE

commit 3d516489715202245a8aa7c3df8517601e312072
parent 4272275c50c1961e28eaeb595c7e684ff084b35d
Author: René Wagner <rwagner@rw-net.de>
Date:   Mon, 27 Jan 2020 21:41:20 +0100

fix indentation
Diffstat:
Madmin.php | 7+++----
1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/admin.php b/admin.php @@ -35,10 +35,9 @@ if (isset($_GET["delete"]) || isset($_GET["add"])) { echo "{\"status\": \"unvalid-url\"}"; exit; } - if (array_key_exists($filtered["name"], $config_content["shortlinks"])) - { - echo "{\"status\": \"url-already-exists\"}"; - exit; + if (array_key_exists($filtered["name"], $config_content["shortlinks"])) { + echo "{\"status\": \"url-already-exists\"}"; + exit; } $config_content["shortlinks"][$filtered["name"]] = $filtered["url"]; $stats_content[$filtered["name"]] = array();