This code:
$current_user = get_currentuseinfo();
foreach ($alleds as $ed) {
$checked = (in_array($ed->ID,(array)$currenteds)) ? ' checked="checked"' : '';
$disabled = (!current_user_can('administrator') && $current_user->ID !== $ed->ID) ? ' disabled="disabled" : '';
echo '<input type="checkbox" name="currenteds[]" value="' . $ed->ID . '"' .$checked . '" '.$disabled.' /><label for="ratings[]">'.$ed->user_nicename.'</label>';
}
Is giving me this error:
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING
Now, I have been trying to wrap my head into why I am receiving this error but I cannot figure it out. The issue may be on the echo line. Do you know what the issue is and how I fix it?
You are missing a closing single quote:
should be:
Look at the syntax highlighting in your question, or your editor, and it should pop out for you.