Removing error.
authorSteve Sutton <steve@gaslightmedia.com>
Tue, 8 Nov 2016 13:37:38 +0000 (08:37 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Tue, 8 Nov 2016 13:37:38 +0000 (08:37 -0500)
Check for value in view file.

views/checkbox.php

index 47336b8..5238df3 100644 (file)
@@ -1,5 +1,5 @@
 <input type="checkbox" name="<?php echo GLM_WP_IMPORT_SETTINGS;?>[<?php echo $fieldName;?>]"
-value="1" <?php if ($options[$fieldName]) {
+value="1" <?php if ( isset( $options[$fieldName] ) && $options[$fieldName] ) {
     echo ' checked';
 }
 ?>>