Skip to content

Commit c21c45f

Browse files
authored
fix count on a string (#842)
1 parent 1a48752 commit c21c45f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

public_html/lists/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454

5555
$I18N = new phplist_I18N();
5656
header('Access-Control-Allow-Origin: '.ACCESS_CONTROL_ALLOW_ORIGIN);
57-
if (defined('ACCESS_CONTROL_ALLOW_ORIGINS') && count('ACCESS_CONTROL_ALLOW_ORIGINS') > 1) {
57+
if (defined('ACCESS_CONTROL_ALLOW_ORIGINS') && count(ACCESS_CONTROL_ALLOW_ORIGINS) > 1) {
5858
header('Vary: Origin'); // https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin#CORS_and_caching
5959
}
6060

0 commit comments

Comments
 (0)