doc/plugin.txt says that 'refresh' is optional. Making sure that it does not
authortokul <tokul@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 23 Mar 2004 18:00:38 +0000 (18:00 +0000)
committertokul <tokul@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 23 Mar 2004 18:00:38 +0000 (18:00 +0000)
generate warnings.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@6853 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/options.php

index 37c6dda..c72aea4 100644 (file)
@@ -409,7 +409,7 @@ function create_option_groups($optgrps, $optvals) {
                     $optset['name'],
                     $optset['caption'],
                     $optset['type'],
-                    $optset['refresh'],
+                    (isset($optset['refresh']) ? $optset['refresh'] : SMOPT_REFRESH_NONE),
                     (isset($optset['initial_value']) ? $optset['initial_value'] : ''),
                     $optset['posvals']
                 );
@@ -419,7 +419,7 @@ function create_option_groups($optgrps, $optvals) {
                     $optset['name'],
                     $optset['caption'],
                     $optset['type'],
-                    $optset['refresh'],
+                    (isset($optset['refresh']) ? $optset['refresh'] : SMOPT_REFRESH_NONE),
                     (isset($optset['initial_value']) ? $optset['initial_value'] : '')
                 );
             }