Mercurial > hg > fapweb
diff usrajax.php @ 368:cbe2693a3cd1
Error handling improvements.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 03 Dec 2013 14:07:47 +0200 |
parents | 2af8458058ab |
children | 6e9d03f10328 |
line wrap: on
line diff
--- a/usrajax.php Tue Dec 03 13:29:49 2013 +0200 +++ b/usrajax.php Tue Dec 03 14:07:47 2013 +0200 @@ -112,11 +112,16 @@ } } } - if (!$errorSet) + + if ($errorSet) { + stSetSessionItem("mode", "error"); + stSetSessionItem("error", $errorMsgs); + } + else stSetSessionItem("mode", "done"); - header("Location: ".stGetRequestItem("goto", "vote")); - } + + header("Location: ".stGetRequestItem("goto", "vote")); } break;