Permalink
Browse files

Fixed logic typo

  • Loading branch information...
1 parent bd5888f commit 03d04eaab772d497996a96d8187be5b718f62332 @JPry JPry committed May 6, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 init.php
View
@@ -272,7 +272,7 @@ function show() {
echo '<p class="cmb_metabox_description">', $field['desc'], '</p>';
break;
case 'checkbox':
- echo '<input type="checkbox" name="', $field['id'], '" id="', $field['id'], '"', checked( ( $meta == true || $field['std'] ), true, false ), ' />';
+ echo '<input type="checkbox" name="', $field['id'], '" id="', $field['id'], '"', checked( ( $meta == true && $field['std'] ), true, false ), ' />';
echo '<span class="cmb_metabox_description">', $field['desc'], '</span>';
break;
case 'multicheck':

0 comments on commit 03d04ea

Please sign in to comment.