Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit 4bb1d93

Browse files
authored
Merge pull request #256 from edent/patch-6
2 parents 05de565 + c44acd3 commit 4bb1d93

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

semantic-linkbacks.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@ public static function facepile_fold_limit() {
9191
public static function facepile_checkboxes() {
9292
$strings = Linkbacks_Handler::get_comment_type_strings();
9393
$facepile = get_option( 'semantic_linkbacks_facepiles' );
94+
// If getting the facepiles hasn't worked, create an empty array to avoid generating errors
95+
if ( ! is_array( $facepile ) ) {
96+
$facepile = array();
97+
}
9498
echo '<div id="facepile-all">';
9599
foreach ( $strings as $key => $value ) {
96100
printf( '<input name="semantic_linkbacks_facepiles[]" type="checkbox" value="%1$s" id="%1$s" %2$s /><label for="%1$s">%3$s</label><br />', $key, checked( in_array( $key, $facepile, true ), true, false ), $value );

0 commit comments

Comments
 (0)