Skip to content

Commit d5eff5f

Browse files
committed
Fixing php-cs-fixer audit issue
1 parent 0abbe97 commit d5eff5f

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

lib/WeatherMap.functions.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,10 @@ function is_weathermap_allowed($mapid, $userid) {
8484
$params = [$mapid];
8585

8686
// Try all users first
87-
$allowed = db_fetch_cell_prepared("SELECT mapid
87+
$allowed = db_fetch_cell_prepared('SELECT mapid
8888
FROM weathermap_auth
8989
WHERE userid = 0
90-
AND mapid = ?",
90+
AND mapid = ?',
9191
$params);
9292

9393
if ($allowed) {
@@ -97,18 +97,18 @@ function is_weathermap_allowed($mapid, $userid) {
9797
$params[] = $userid;
9898

9999
// Try specific user second
100-
$allowed = db_fetch_cell_prepared("SELECT mapid
100+
$allowed = db_fetch_cell_prepared('SELECT mapid
101101
FROM weathermap_auth
102102
WHERE mapid = ?
103-
AND userid = ?",
103+
AND userid = ?',
104104
$params);
105105

106106
if ($allowed) {
107107
return true;
108108
}
109109

110110
// Try user group last
111-
$allowed = db_fetch_cell_prepared("SELECT mapid
111+
$allowed = db_fetch_cell_prepared('SELECT mapid
112112
FROM weathermap_auth AS wa
113113
INNER JOIN user_auth_group AS uag
114114
ON wa.userid < 0
@@ -117,8 +117,8 @@ function is_weathermap_allowed($mapid, $userid) {
117117
ON uag.id = uagm.group_id
118118
WHERE wa.mapid = ?
119119
AND uagm.user_id = ?
120-
AND uag.enabled = 'on'
121-
AND uagm.group_id > 0",
120+
AND uag.enabled = "on"
121+
AND uagm.group_id > 0',
122122
$params);
123123

124124
if ($allowed) {

0 commit comments

Comments
 (0)