瀏覽代碼

doc/plugin.txt says that 'refresh' is optional. Making sure that it does not
generate warnings.

tokul 21 年之前
父節點
當前提交
a452a45771
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      functions/options.php

+ 2 - 2
functions/options.php

@@ -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'] : '')
                 );
             }