]> git.mxchange.org Git - mailer.git/commitdiff
Some fields will now only be included if action 'edit' selected
authorRoland Häder <roland@mxchange.org>
Fri, 28 Nov 2008 00:05:42 +0000 (00:05 +0000)
committerRoland Häder <roland@mxchange.org>
Fri, 28 Nov 2008 00:05:42 +0000 (00:05 +0000)
inc/databases.php
inc/libs/surfbar_functions.php

index c6f60e67ab939e9eba638b5f6b7e4170e097922a..d6dbd0eabd70571bd7dfaf30afa996cca6d4050c 100644 (file)
@@ -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);
index c183e5e0aafac1610bae4db28a06d7794ffc80c8..972b196dad52074f3c117c631fb6e10a343c0f66 100644 (file)
@@ -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