if (!SQL_HASZERONUMS($result)) {
// Load list
- $OUT = "<select name=\"to_userid\" size=\"1\" class=\"member_select\">
- <option value=\"0\">{--SELECT_NONE--}</option>\n";
+ $OUT = '<select name="to_userid" size="1" class="member_select">
+ <option value="0">{--SELECT_NONE--}</option>';
// @TODO Try to rewrite his to $content = SQL_FETCHARRAY(), see some lines above for two different queries
while (list($userid, $nick) = SQL_FETCHROW($result)) {
- $OUT .= " <option value=\"".$userid."\"";
- if ((isPostRequestParameterSet(('to_userid'))) && (postRequestParameter('to_userid') == $userid)) $OUT .= ' selected="selected"';
- $OUT .= ">";
+ $OUT .= ' <option value="' . $userid . '"';
+ if ((isPostRequestParameterSet('to_userid')) && (postRequestParameter('to_userid') == $userid)) $OUT .= ' selected="selected"';
+ $OUT .= '>';
if (($nick != $userid) && (!empty($nick))) {
// Output nickname
$OUT .= $nick;
// Output userid
$OUT .= $userid;
}
- $OUT .= "</option>\n";
+ $OUT .= '</option>';
}
- $OUT .= "</select>\n";
+ $OUT .= '</select>';
$content['to_disabled'] = '';
// Free memory
SQL_FREERESULT($result);
} else {
// Nothing for in or out
- $OUT = "<tr>
- <td colspan=\"5\" align=\"center\" class=\"bottom\">
- ".loadTemplate('admin_settings_saved', true, $nothingMessage)."
+ $OUT = '<tr>
+ <td colspan="5" align="center" class="bottom">
+ ' . loadTemplate('admin_settings_saved', true, $nothingMessage) . '
</td>
-</tr>";
+</tr>';
}
// ... and add them to a constant for the template