if ($modaction) {
$firstletter = substr($modaction, 0, 1);
- if (preg_match('/[[:alpha:]]/', $firstletter)) {
+ if (ctype_alpha($firstletter)) {
$where .= " AND\n lower(l.action) LIKE '%" . strtolower($modaction) . "%'";
} else if ($firstletter == '-') {
$where .= " AND\n lower(l.action) NOT LIKE '%" . strtolower(substr($modaction, 1)) . "%'";
if ($modaction) {
$firstletter = substr($modaction, 0, 1);
- if (preg_match('/[[:alpha:]]/', $firstletter)) {
+ if (ctype_alpha($firstletter)) {
$joins[] = "lower(l.action) LIKE '%" . strtolower($modaction) . "%'";
} else if ($firstletter == '-') {
$joins[] = "lower(l.action) NOT LIKE '%" . strtolower(substr($modaction, 1)) . "%'";