</label> </th> <td> <?php $restrict_type = $restrict_by_cats_type; // 0 for exceptions list; 1 for white list $restrict_items = $restrict_by_cats_slugs; // hopefully, this is an array if (!is_array($restrict_items)) { // if not: $restrict_items = array(); } // use an empty array // turn array into comma separated list $restrict_items_text = implode(", ", $restrict_items); printf(__("%1\$s%2\$s", "thankmelater"), TML_form::input_select_restriction_type("restrict_by_cats_type", $restrict_type, 7), TML_form::input_text("restrict_by_cats_slugs", $restrict_items_text, 8)); ?> <small><?php _e('Comma separated list of category <strong>slugs</strong> to restrict.', 'thankmelater'); ?> </small> </td> </tr> <tr valign="top"> <th scope="row"> <?php _e("Restrict by Users", "thankmelater"); ?> </th> <td>