Revision: 2009
http://mrbs.svn.sourceforge.net/mrbs/?rev=2009&view=rev
Author: cimorrison
Date: 2011-09-25 06:20:36 +0000 (Sun, 25 Sep 2011)
Log Message:
-----------
Fixed bug causing Back button on the edit_entry page to go to the wrong page
Modified Paths:
--------------
mrbs/trunk/web/edit_entry_handler.php
Modified: mrbs/trunk/web/edit_entry_handler.php
===================================================================
--- mrbs/trunk/web/edit_entry_handler.php 2011-09-24 10:25:59 UTC (rev
2008)
+++ mrbs/trunk/web/edit_entry_handler.php 2011-09-25 06:20:36 UTC (rev
2009)
@@ -62,6 +62,17 @@
$$var = get_form_var($var, $var_type);
}
+// BACK: we didn't really want to be here - send them to the returl
+if (!empty($back_button))
+{
+ if (empty($returl))
+ {
+ $returl = "index.php";
+ }
+ header("Location: $returl");
+ exit();
+}
+
// Get custom form variables
$custom_fields = array();
@@ -160,13 +171,6 @@
$returl = $returl_base[0];
}
-// BACK: we didn't really want to be here - send them to the returl
-if (!empty($back_button))
-{
- header("Location: $returl");
- exit();
-}
-
// If we haven't been given a sensible date then get out of here and don't
trey and make a booking
if (!isset($day) || !isset($month) || !isset($year) || !checkdate($month,
$day, $year))
{
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits