# HG changeset patch # User Matti Hamalainen # Date 1386072467 -7200 # Node ID cbe2693a3cd1e37a81a2119eb7f88eac0049b9de # Parent 843f4cf318f3547c539deef7022c250573253b30 Error handling improvements. diff -r 843f4cf318f3 -r cbe2693a3cd1 usrajax.php --- 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;