From: Roland Häder Date: Fri, 28 Nov 2008 00:05:42 +0000 (+0000) Subject: Some fields will now only be included if action 'edit' selected X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=32acd59740388a0e8faf9ee0efc27ff9d733d63f;p=mailer.git Some fields will now only be included if action 'edit' selected --- diff --git a/inc/databases.php b/inc/databases.php index c6f60e67ab..d6dbd0eabd 100644 --- a/inc/databases.php +++ b/inc/databases.php @@ -114,7 +114,7 @@ define('USAGE_BASE', "usage"); define('SERVER_URL', "http://www.mxchange.org"); // This current patch level -define('CURR_SVN_REVISION', "569"); +define('CURR_SVN_REVISION', "571"); // Take a prime number which is long (if you know a longer one please try it out!) define('_PRIME', 591623); diff --git a/inc/libs/surfbar_functions.php b/inc/libs/surfbar_functions.php index c183e5e0aa..972b196dad 100644 --- a/inc/libs/surfbar_functions.php +++ b/inc/libs/surfbar_functions.php @@ -341,17 +341,20 @@ function SURFBAR_MEMBER_DISPLAY_ACTION_FORM ($action, $urlData) { $urlData['lock_reason'] = "---"; } // END - if - // Default is not limited - $urlData['limited_yes'] = ""; - $urlData['limited_no'] = " checked=\"checked\""; - $urlData['limited'] = "false"; - - // Is this URL limited? - if ($urlData['views_max'] > 0) { - // Then rewrite form data - $urlData['limited_yes'] = " checked=\"checked\""; - $urlData['limited_no'] = ""; - $urlData['limited'] = "true"; + // Include fields only for action 'edit' + if ($action == "edit") { + // Default is not limited + $urlData['limited_yes'] = ""; + $urlData['limited_no'] = " checked=\"checked\""; + $urlData['limited'] = "false"; + + // Is this URL limited? + if ($urlData['views_max'] > 0) { + // Then rewrite form data + $urlData['limited_yes'] = " checked=\"checked\""; + $urlData['limited_no'] = ""; + $urlData['limited'] = "true"; + } // END - if } // END - if // Load the form and display it