From 54329cc60b028f19e4099724d5cdc2eebf5ba040 Mon Sep 17 00:00:00 2001 From: Gnieark Date: Wed, 30 Dec 2015 16:25:54 +0100 Subject: [PATCH] show errors --- src/act.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/act.php b/src/act.php index bba9e22..6870984 100644 --- a/src/act.php +++ b/src/act.php @@ -120,7 +120,9 @@ switch($_POST['act']){ if(!preg_match("/^(http|https):\/\//", $_POST['botURL'])){ $alerts.="L'URL n'est pas valide.\n"; } - if($err <> ""){ + if($err == ""){ + echo "plop"; die; + }else{ //save bot on temp table $secret=rand_str(8, 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890'); @@ -167,9 +169,6 @@ switch($_POST['act']){ - }else{ - echo $err; - die; }