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 c6f60e6..d6dbd0e 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 c183e5e..972b196 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