@@ -71,8 +71,8 @@ |
||
71 | 71 | global $opt; |
72 | 72 | |
73 | 73 | // if data changed - delete statpic of user, if exists - will be recreated on next request |
74 | - if (file_exists($opt['rootpath'] . 'images/statpics/statpic' . $this->nUserId . '.jpg')) { |
|
75 | - unlink($opt['rootpath'] . 'images/statpics/statpic' . $this->nUserId . '.jpg'); |
|
74 | + if (file_exists($opt['rootpath'].'images/statpics/statpic'.$this->nUserId.'.jpg')) { |
|
75 | + unlink($opt['rootpath'].'images/statpics/statpic'.$this->nUserId.'.jpg'); |
|
76 | 76 | } |
77 | 77 | } |
78 | 78 | } |
@@ -17,12 +17,12 @@ discard block |
||
17 | 17 | const FOR_STARTPAGE_GALLERY = 1; |
18 | 18 | const FOR_NEWPICS_GALLERY = 2; |
19 | 19 | const FOR_USER_STAT = 3; |
20 | - const FOR_USER_GALLERY = 4; // params: userid |
|
20 | + const FOR_USER_GALLERY = 4; // params: userid |
|
21 | 21 | const FOR_MYHOME_GALLERY = 5; |
22 | - const FOR_CACHE_STAT = 6; // params: cacheid |
|
23 | - const FOR_CACHE_GALLERY = 7; // params: cacheid |
|
22 | + const FOR_CACHE_STAT = 6; // params: cacheid |
|
23 | + const FOR_CACHE_GALLERY = 7; // params: cacheid |
|
24 | 24 | |
25 | - const MAX_PICTURES_PER_GALLERY_PAGE = 48; // must be multiple of 6 |
|
25 | + const MAX_PICTURES_PER_GALLERY_PAGE = 48; // must be multiple of 6 |
|
26 | 26 | |
27 | 27 | |
28 | 28 | public static function get($purpose, $userid = 0, $cacheid = 0) |
@@ -232,7 +232,7 @@ discard block |
||
232 | 232 | $pictures = self::get($purpose, $userid, $cacheid); |
233 | 233 | $tpl->assign('pictures', array_slice($pictures, $startat, self::MAX_PICTURES_PER_GALLERY_PAGE)); |
234 | 234 | |
235 | - $pager = new pager($url . "&startat={offset}"); |
|
235 | + $pager = new pager($url."&startat={offset}"); |
|
236 | 236 | $pager->make_from_offset($startat, count($pictures), self::MAX_PICTURES_PER_GALLERY_PAGE); |
237 | 237 | } |
238 | 238 |
@@ -8,8 +8,8 @@ discard block |
||
8 | 8 | * add/remove etc. is executed instantly |
9 | 9 | ***************************************************************************/ |
10 | 10 | |
11 | -require_once __DIR__ . '/cracklib.inc.php'; |
|
12 | -require_once __DIR__ . '/../translate.class.php'; |
|
11 | +require_once __DIR__.'/cracklib.inc.php'; |
|
12 | +require_once __DIR__.'/../translate.class.php'; |
|
13 | 13 | |
14 | 14 | class user |
15 | 15 | { |
@@ -760,8 +760,8 @@ discard block |
||
760 | 760 | $mail->to = $this->getEMail(); |
761 | 761 | $mail->subject = $translate->t('Registration confirmation', '', basename(__FILE__), __LINE__); |
762 | 762 | $mail->assign('domain', $opt['page']['domain']); |
763 | - $mail->assign('activation_page', $opt['page']['absolute_url'] . 'activation.php'); |
|
764 | - $mail->assign('short_activation_page', $opt['page']['absolute_url'] . 'a.php'); |
|
763 | + $mail->assign('activation_page', $opt['page']['absolute_url'].'activation.php'); |
|
764 | + $mail->assign('short_activation_page', $opt['page']['absolute_url'].'a.php'); |
|
765 | 765 | $mail->assign('username', $this->getUsername()); |
766 | 766 | $mail->assign('userid', $this->getUserId()); |
767 | 767 | $mail->assign('last_name', $this->getLastName()); |
@@ -834,7 +834,7 @@ discard block |
||
834 | 834 | $mail->returnPath = $fromUser->getEMail(); |
835 | 835 | } |
836 | 836 | |
837 | - $mail->subject = $translate->t('E-Mail from', '', basename(__FILE__), __LINE__, '', 1, $language) . ' ' . $fromUser->getUsername() . ': ' . $sSubject; |
|
837 | + $mail->subject = $translate->t('E-Mail from', '', basename(__FILE__), __LINE__, '', 1, $language).' '.$fromUser->getUsername().': '.$sSubject; |
|
838 | 838 | $mail->assign('usersubject', $sSubject); |
839 | 839 | $mail->assign('text', $sText); |
840 | 840 | $mail->assign('username', $this->getUsername()); |
@@ -906,7 +906,7 @@ discard block |
||
906 | 906 | $login->userid, |
907 | 907 | $this->nUserId, |
908 | 908 | 0, |
909 | - 'User ' . sql_escape($this->getUsername()) . ' disabled', |
|
909 | + 'User '.sql_escape($this->getUsername()).' disabled', |
|
910 | 910 | serialize($backup) |
911 | 911 | ); |
912 | 912 | |
@@ -1026,9 +1026,9 @@ discard block |
||
1026 | 1026 | if ($num_caches > 0) { |
1027 | 1027 | $cache_descs = array(); |
1028 | 1028 | $rs = sql( |
1029 | - "SELECT `id`, `language`, `desc`, `hint` " . |
|
1030 | - "FROM `cache_desc`,`caches` " . |
|
1031 | - "WHERE `caches`.`cache_id`=`cache_desc`.`cache_id` " . |
|
1029 | + "SELECT `id`, `language`, `desc`, `hint` ". |
|
1030 | + "FROM `cache_desc`,`caches` ". |
|
1031 | + "WHERE `caches`.`cache_id`=`cache_desc`.`cache_id` ". |
|
1032 | 1032 | "AND `caches`.`user_id`='&1'", |
1033 | 1033 | $this->getUserId() |
1034 | 1034 | ); |
@@ -1073,10 +1073,10 @@ discard block |
||
1073 | 1073 | } |
1074 | 1074 | |
1075 | 1075 | sql( |
1076 | - "UPDATE `cache_desc` " . |
|
1077 | - "SET `desc`='&1',`hint`='&2' " . |
|
1076 | + "UPDATE `cache_desc` ". |
|
1077 | + "SET `desc`='&1',`hint`='&2' ". |
|
1078 | 1078 | "WHERE `id`='&3'", |
1079 | - "<em>" . $descmsg . "</em>", |
|
1079 | + "<em>".$descmsg."</em>", |
|
1080 | 1080 | '', |
1081 | 1081 | $desc['id'] |
1082 | 1082 | ); |
@@ -1175,7 +1175,7 @@ discard block |
||
1175 | 1175 | global $opt; |
1176 | 1176 | |
1177 | 1177 | // load bmp-support |
1178 | - require_once $opt['rootpath'] . 'lib2/imagebmp.inc.php'; |
|
1178 | + require_once $opt['rootpath'].'lib2/imagebmp.inc.php'; |
|
1179 | 1179 | |
1180 | 1180 | // paths cleared by trailing '/' |
1181 | 1181 | if (substr($opt['logic']['pictures']['dir'], - 1) != '/') { |
@@ -1221,18 +1221,18 @@ discard block |
||
1221 | 1221 | */ |
1222 | 1222 | if ($object_type == OBJECT_CACHE) {// get filenames of the pictures of $this' caches |
1223 | 1223 | $rs = sql( |
1224 | - "SELECT `pictures`.`url` " . |
|
1225 | - "FROM `pictures`,`caches` " . |
|
1226 | - "WHERE `caches`.`cache_id`=`pictures`.`object_id`" . |
|
1224 | + "SELECT `pictures`.`url` ". |
|
1225 | + "FROM `pictures`,`caches` ". |
|
1226 | + "WHERE `caches`.`cache_id`=`pictures`.`object_id`". |
|
1227 | 1227 | " AND `pictures`.`object_type`='&1' AND `caches`.`user_id`='&2'", |
1228 | 1228 | OBJECT_CACHE, |
1229 | 1229 | $this->getUserId() |
1230 | 1230 | ); |
1231 | 1231 | } elseif ($object_type == OBJECT_CACHELOG) {// get filenames of the pictures of $this' logs |
1232 | 1232 | $rs = sql( |
1233 | - "SELECT `pictures`.`url` " . |
|
1234 | - "FROM `pictures`,`cache_logs` " . |
|
1235 | - "WHERE `cache_logs`.`id`=`pictures`.`object_id`" . |
|
1233 | + "SELECT `pictures`.`url` ". |
|
1234 | + "FROM `pictures`,`cache_logs` ". |
|
1235 | + "WHERE `cache_logs`.`id`=`pictures`.`object_id`". |
|
1236 | 1236 | " AND `pictures`.`object_type`='&1' AND `cache_logs`.`user_id`='&2'", |
1237 | 1237 | OBJECT_CACHELOG, |
1238 | 1238 | $this->getUserId() |
@@ -1284,7 +1284,7 @@ discard block |
||
1284 | 1284 | |
1285 | 1285 | // check for replacement-image |
1286 | 1286 | if ($pdummy && isset($opt['logic']['pictures']['dummy']['replacepic']) |
1287 | - && $opt['logic']['pictures']['dummy']['replacepic'] != $opt['rootpath'] . 'images/' |
|
1287 | + && $opt['logic']['pictures']['dummy']['replacepic'] != $opt['rootpath'].'images/' |
|
1288 | 1288 | && file_exists($opt['logic']['pictures']['dummy']['replacepic']) |
1289 | 1289 | ) { |
1290 | 1290 | |
@@ -1460,7 +1460,7 @@ discard block |
||
1460 | 1460 | $login->userid, |
1461 | 1461 | $this->nUserId, |
1462 | 1462 | 0, |
1463 | - 'User ' . sql_escape($this->getUsername()) . ' deleted', |
|
1463 | + 'User '.sql_escape($this->getUsername()).' deleted', |
|
1464 | 1464 | serialize($backup) |
1465 | 1465 | ); |
1466 | 1466 |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | |
33 | 33 | private static function setCacheLocation($cache_id) |
34 | 34 | { |
35 | - echo $cache_id . "\n"; |
|
35 | + echo $cache_id."\n"; |
|
36 | 36 | $rs = sqll( |
37 | 37 | "SELECT `latitude`, `longitude`, `last_modified` |
38 | 38 | FROM `caches` |
@@ -95,16 +95,16 @@ discard block |
||
95 | 95 | $rs = sqll( |
96 | 96 | "SELECT |
97 | 97 | `geodb_coordinates`.`loc_id` `loc_id`, |
98 | - (( " . $lon . " - `geodb_coordinates`.`lon` ) * ( " . $lon . " - `geodb_coordinates`.`lon` ) + |
|
99 | - ( " . $lat . " - `geodb_coordinates`.`lat` ) * ( " . $lat . " - `geodb_coordinates`.`lat` )) `dist` |
|
98 | + (( " . $lon." - `geodb_coordinates`.`lon` ) * ( ".$lon." - `geodb_coordinates`.`lon` ) + |
|
99 | + ( " . $lat." - `geodb_coordinates`.`lat` ) * ( ".$lat." - `geodb_coordinates`.`lat` )) `dist` |
|
100 | 100 | FROM `geodb_coordinates` |
101 | 101 | INNER JOIN `geodb_locations` ON `geodb_coordinates`.`loc_id`=`geodb_locations`.`loc_id` |
102 | 102 | WHERE |
103 | 103 | `geodb_locations`.`loc_type`=100700000 |
104 | - AND `geodb_coordinates`.`lon` > " . ($lon - 0.15) . " |
|
105 | - AND `geodb_coordinates`.`lon` < " . ($lon + 0.15) . " |
|
106 | - AND `geodb_coordinates`.`lat` > " . ($lat - 0.15) . " |
|
107 | - AND `geodb_coordinates`.`lat` < " . ($lat + 0.15) . " |
|
104 | + AND `geodb_coordinates`.`lon` > " . ($lon - 0.15)." |
|
105 | + AND `geodb_coordinates`.`lon` < " . ($lon + 0.15)." |
|
106 | + AND `geodb_coordinates`.`lat` > " . ($lat - 0.15)." |
|
107 | + AND `geodb_coordinates`.`lat` < " . ($lat + 0.15)." |
|
108 | 108 | ORDER BY `dist` ASC |
109 | 109 | LIMIT 1" |
110 | 110 | ); |
@@ -34,10 +34,10 @@ |
||
34 | 34 | |
35 | 35 | $npas = get_npas($cache_id); |
36 | 36 | if ($npas) { |
37 | - $desc = "<p>" . str_replace('%1', helppagelink('npa'), _('This geocache is probably placed within the following protected areas (%1Info</a>):')) . "</p>\n" . |
|
37 | + $desc = "<p>".str_replace('%1', helppagelink('npa'), _('This geocache is probably placed within the following protected areas (%1Info</a>):'))."</p>\n". |
|
38 | 38 | "<ul>\n"; |
39 | 39 | foreach ($npas as $npa) { |
40 | - $desc .= "<li>" . $npa['npaTypeName'] . ": <a href='http://www.google.de/search?q=" . urlencode($npa['npaTypeName'] . ' ' . $npa['npaName']) . "' target='_blank'>" . $npa['npaName'] . "</a></li>\n"; |
|
40 | + $desc .= "<li>".$npa['npaTypeName'].": <a href='http://www.google.de/search?q=".urlencode($npa['npaTypeName'].' '.$npa['npaName'])."' target='_blank'>".$npa['npaName']."</a></li>\n"; |
|
41 | 41 | } |
42 | 42 | $desc .= "</ul>\n"; |
43 | 43 | } else { |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | LEFT JOIN `sys_trans_text` AS `tt2` |
80 | 80 | ON `t2`.`id`=`tt2`.`trans_id` |
81 | 81 | AND `tt2`.`lang`='&1' |
82 | - WHERE `cache_attrib`.`group_id`='&2'" . $sAddWhereSql . " |
|
82 | + WHERE `cache_attrib`.`group_id`='&2'" . $sAddWhereSql." |
|
83 | 83 | AND NOT IFNULL(`cache_attrib`.`hidden`, 0)=1 |
84 | 84 | ORDER BY `cache_attrib`.`group_id` ASC", |
85 | 85 | $opt['template']['locale'], |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | } |
117 | 117 | while ($rAttr = sql_fetch_assoc($rsAttr)) { |
118 | 118 | if ($firstLetterUppercase) { |
119 | - $rAttr['name'] = mb_strtoupper(mb_substr($rAttr['name'], 0, 1)) . mb_substr($rAttr['name'], 1); |
|
119 | + $rAttr['name'] = mb_strtoupper(mb_substr($rAttr['name'], 0, 1)).mb_substr($rAttr['name'], 1); |
|
120 | 120 | } |
121 | 121 | $attr[] = $rAttr; |
122 | 122 | if ($rAttr['search_default']) { |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | public $sFrom = '[email protected]'; |
23 | 23 | |
24 | 24 | public $nConnectTimeout = 15; // (sec) |
25 | - public $nReadTimeout = 25; // (sec) |
|
25 | + public $nReadTimeout = 25; // (sec) |
|
26 | 26 | |
27 | 27 | /* check if the mailserver of $sAddress |
28 | 28 | * explicit says that the user does not exist |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | |
51 | 51 | // sort MX records |
52 | 52 | $mxs = []; |
53 | - for ($i = 0; $i < count($mx_records); $i ++) { |
|
53 | + for ($i = 0; $i < count($mx_records); $i++) { |
|
54 | 54 | $mxs[$i] = [ |
55 | 55 | 'mx' => $mx_records[$i], |
56 | 56 | 'prio' => $mx_weight[$i] |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | reset($mxs); |
61 | 61 | |
62 | 62 | // check address with each MX until one mailserver can be connected |
63 | - for ($i = 0; $i < count($mxs); $i ++) { |
|
63 | + for ($i = 0; $i < count($mxs); $i++) { |
|
64 | 64 | $retval = $this->pCheckAddress($sAddress, $mxs[$i]['mx']); |
65 | 65 | if ($retval != CA_ERROR_CONNECT) { |
66 | 66 | return $retval; |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | return CA_ERROR_CONNECT; |
93 | 93 | } |
94 | 94 | |
95 | - $sResp = $this->send_command($fp, "HELO " . $this->sHostname); |
|
95 | + $sResp = $this->send_command($fp, "HELO ".$this->sHostname); |
|
96 | 96 | $sCode = $this->extract_return_code($sResp); |
97 | 97 | if ($sCode != '220') { |
98 | 98 | $this->close($fp); |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | return CA_ERROR_UNKOWN; |
101 | 101 | } |
102 | 102 | |
103 | - $sResp = $this->send_command($fp, "MAIL FROM: <" . $this->sFrom . ">"); |
|
103 | + $sResp = $this->send_command($fp, "MAIL FROM: <".$this->sFrom.">"); |
|
104 | 104 | $sCode = $this->extract_return_code($sResp); |
105 | 105 | if ($sCode != '250') { |
106 | 106 | $this->close($fp); |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | return CA_ERROR_UNKOWN; |
109 | 109 | } |
110 | 110 | |
111 | - $sResp = $this->send_command($fp, "RCPT TO: <" . $sAddress . ">"); |
|
111 | + $sResp = $this->send_command($fp, "RCPT TO: <".$sAddress.">"); |
|
112 | 112 | $sCode = $this->extract_return_code($sResp); |
113 | 113 | if (strlen($sCode) == 3 && substr($sCode, 0, 1) == '4') { |
114 | 114 | $this->close($fp); |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | |
160 | 160 | public function send_command($fp, $out) |
161 | 161 | { |
162 | - fwrite($fp, $out . "\r\n"); |
|
162 | + fwrite($fp, $out."\r\n"); |
|
163 | 163 | |
164 | 164 | return $this->get_data($fp); |
165 | 165 | } |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | $s = ""; |
170 | 170 | stream_set_timeout($fp, $this->nReadTimeout); |
171 | 171 | |
172 | - for ($i = 0; $i < 2; $i ++) { |
|
172 | + for ($i = 0; $i < 2; $i++) { |
|
173 | 173 | $s .= fgets($fp, 1024); |
174 | 174 | } |
175 | 175 | |
@@ -183,5 +183,5 @@ discard block |
||
183 | 183 | return 0; |
184 | 184 | } |
185 | 185 | |
186 | - return (($a['prio'] + 0) < ($b['prio'] + 0)) ? - 1 : 1; |
|
186 | + return (($a['prio'] + 0) < ($b['prio'] + 0)) ? -1 : 1; |
|
187 | 187 | } |
@@ -8,8 +8,8 @@ discard block |
||
8 | 8 | * add/remove etc. is executed instantly |
9 | 9 | ***************************************************************************/ |
10 | 10 | |
11 | -require_once __DIR__ . '/logtypes.inc.php'; |
|
12 | -require_once __DIR__ . '/../../lib/cache.inc.php'; |
|
11 | +require_once __DIR__.'/logtypes.inc.php'; |
|
12 | +require_once __DIR__.'/../../lib/cache.inc.php'; |
|
13 | 13 | |
14 | 14 | class cache |
15 | 15 | { |
@@ -283,7 +283,7 @@ discard block |
||
283 | 283 | ); |
284 | 284 | if ($r = sql_fetch_assoc($rs)) { |
285 | 285 | if ($r['listing_outdated'] == 2) { |
286 | - $url = 'viewlogs.php?cacheid=' . $this->getCacheId() . '#log' . $r['id']; |
|
286 | + $url = 'viewlogs.php?cacheid='.$this->getCacheId().'#log'.$r['id']; |
|
287 | 287 | } |
288 | 288 | } |
289 | 289 | sql_free_result($rs); |
@@ -473,7 +473,7 @@ discard block |
||
473 | 473 | `cache_logs`.`text` AS `text`, |
474 | 474 | `cache_logs`.`text_html` AS `texthtml`, |
475 | 475 | `cache_logs`.`picture`, |
476 | - ' . $delfields . ", |
|
476 | + ' . $delfields.", |
|
477 | 477 | `user`.`username` AS `username`, |
478 | 478 | IF(ISNULL(`cache_rating`.`cache_id`), 0, `cache_logs`.`type` IN (1,7)) AS `recommended` |
479 | 479 | FROM $table AS `cache_logs` |
@@ -483,7 +483,7 @@ discard block |
||
483 | 483 | ON `cache_logs`.`cache_id`=`cache_rating`.`cache_id` |
484 | 484 | AND `cache_logs`.`user_id`=`cache_rating`.`user_id` |
485 | 485 | AND `cache_logs`.`date`=`cache_rating`.`rating_date` |
486 | - " . $addjoin . " |
|
486 | + ".$addjoin." |
|
487 | 487 | WHERE `cache_logs`.`cache_id`='&1' |
488 | 488 | ORDER BY `cache_logs`.`order_date` DESC, `cache_logs`.`date_created` DESC, `id` DESC |
489 | 489 | LIMIT &2, &3", |
@@ -508,7 +508,7 @@ discard block |
||
508 | 508 | ); |
509 | 509 | while ($rPicture = sql_fetch_assoc($rsPictures)) { |
510 | 510 | if (trim($rPicture['title']) == '') { |
511 | - $rPicture['title'] = $translate->t('Picture', '', '', 0) . ' ' . (count($pictures) + 1); |
|
511 | + $rPicture['title'] = $translate->t('Picture', '', '', 0).' '.(count($pictures) + 1); |
|
512 | 512 | } |
513 | 513 | $pictures[] = $rPicture; |
514 | 514 | } |
@@ -521,7 +521,7 @@ discard block |
||
521 | 521 | if (!$newcoord) { |
522 | 522 | $newcoord = $coords[$coordpos]; |
523 | 523 | } |
524 | - ++ $coordpos; |
|
524 | + ++$coordpos; |
|
525 | 525 | } |
526 | 526 | if ($newcoord) { |
527 | 527 | $distance = geomath::calcDistance( |
@@ -554,7 +554,7 @@ discard block |
||
554 | 554 | $original = count($coords) - 1; |
555 | 555 | $lastlogdate = $logs[count($logs) - 1]['order_date']; |
556 | 556 | while ($original > 0 && $coords[$original - 1]['date'] < $lastlogdate) { |
557 | - -- $original; |
|
557 | + --$original; |
|
558 | 558 | } |
559 | 559 | $coord = new coordinate($coords[$original]['latitude'], $coords[$original]['longitude']); |
560 | 560 | $logs[] = [ |
@@ -676,9 +676,9 @@ discard block |
||
676 | 676 | $login->userid, |
677 | 677 | $this->nCacheId, |
678 | 678 | 0, |
679 | - 'Cache ' . sql_escape($this->nCacheId) . ' has changed the owner from userid ' . sql_escape( |
|
679 | + 'Cache '.sql_escape($this->nCacheId).' has changed the owner from userid '.sql_escape( |
|
680 | 680 | $this->getUserId() |
681 | - ) . ' to ' . sql_escape($userId) . ' by ' . sql_escape($login->userid) |
|
681 | + ).' to '.sql_escape($userId).' by '.sql_escape($login->userid) |
|
682 | 682 | ); |
683 | 683 | // Adoptions now are recorded by trigger in cache_adoptions table. |
684 | 684 | // Recording adoptions in 'logentries' may be discarded after ensuring that the |
@@ -955,7 +955,7 @@ discard block |
||
955 | 955 | $logTypes[$i]['selected'] = ($logtype == $defaultLogType) ? true : false; |
956 | 956 | $logTypes[$i]['name'] = $logtypeNames[$logtype]; |
957 | 957 | $logTypes[$i]['id'] = $logtype; |
958 | - $i ++; |
|
958 | + $i++; |
|
959 | 959 | } |
960 | 960 | |
961 | 961 | // return |
@@ -8,7 +8,7 @@ discard block |
||
8 | 8 | * |
9 | 9 | ***************************************************************************/ |
10 | 10 | |
11 | -require_once __DIR__ . '/const.inc.php'; |
|
11 | +require_once __DIR__.'/const.inc.php'; |
|
12 | 12 | |
13 | 13 | class useroptions |
14 | 14 | { |
@@ -150,7 +150,7 @@ discard block |
||
150 | 150 | $this->nOptions[$pId]['option_value'] = $pValue; |
151 | 151 | |
152 | 152 | return true; |
153 | - } elseif (preg_match("/" . $this->nOptions[$pId]['check_regex'] . "/", $pValue) || strlen($pValue) == 0) { |
|
153 | + } elseif (preg_match("/".$this->nOptions[$pId]['check_regex']."/", $pValue) || strlen($pValue) == 0) { |
|
154 | 154 | $this->nOptions[$pId]['option_value'] = $pValue; |
155 | 155 | |
156 | 156 | return true; |