Commit 657e23d4 authored by Eric Rasmussen's avatar Eric Rasmussen
Browse files

Give error message on failure to save a new app when editing

parent e8e306ee
...@@ -85,7 +85,7 @@ if (isset($_POST['submit']) && ...@@ -85,7 +85,7 @@ if (isset($_POST['submit']) &&
$msg = "Successfully created your application!" ; $msg = "Successfully created your application!" ;
header("Location: main.php?msg=$msg&success"); header("Location: main.php?msg=$msg&success");
exit(); exit();
} else if(!$profile){ } else if(!$profile || (int)$appID == 0){
$msg = "Error!" ; $msg = "Error!" ;
header("Location: main.php?msg=$msg&failure"); header("Location: main.php?msg=$msg&failure");
exit(); exit();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment