Completed
Push — master ( 598c1e...182b8c )
by Thomas
15:55 queued 08:34
created
htdocs/lib/logic.inc.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -15,8 +15,8 @@  discard block
 block discarded – undo
15 15
     return sqlValue(
16 16
         "SELECT IFNULL(`stt`.`text`, `cache_type`.`en`)
17 17
          FROM `cache_type`
18
-         LEFT JOIN `sys_trans_text` `stt` ON `stt`.`trans_id`=`cache_type`.`trans_id` AND `stt`.`lang`='" . sql_escape($language) . "'
19
-         WHERE `cache_type`.`id`='" . sql_escape($cachetype) . "'",
18
+         LEFT JOIN `sys_trans_text` `stt` ON `stt`.`trans_id`=`cache_type`.`trans_id` AND `stt`.`lang`='" . sql_escape($language)."'
19
+         WHERE `cache_type`.`id`='" . sql_escape($cachetype)."'",
20 20
         ''
21 21
     );
22 22
 }
@@ -26,8 +26,8 @@  discard block
 block discarded – undo
26 26
     return sqlValue(
27 27
         "SELECT IFNULL(`stt`.`text`, `cache_size`.`en`)
28 28
          FROM `cache_size`
29
-         LEFT JOIN `sys_trans_text` `stt` ON `stt`.`trans_id`=`cache_size`.`trans_id` AND `stt`.`lang`='" . sql_escape($language) . "'
30
-         WHERE `cache_size`.`id`='" . sql_escape($cachesize) . "'",
29
+         LEFT JOIN `sys_trans_text` `stt` ON `stt`.`trans_id`=`cache_size`.`trans_id` AND `stt`.`lang`='" . sql_escape($language)."'
30
+         WHERE `cache_size`.`id`='" . sql_escape($cachesize)."'",
31 31
         ''
32 32
     );
33 33
 }
@@ -37,8 +37,8 @@  discard block
 block discarded – undo
37 37
     return sqlValue(
38 38
         "SELECT IFNULL(`stt`.`text`, `log_types`.`en`)
39 39
          FROM `log_types`
40
-         LEFT JOIN `sys_trans_text` `stt` ON `stt`.`trans_id`=`log_types`.`trans_id` AND `stt`.`lang`='" . sql_escape($language) . "'
41
-         WHERE `log_types`.`id`='" . sql_escape($logtype) . "'",
40
+         LEFT JOIN `sys_trans_text` `stt` ON `stt`.`trans_id`=`log_types`.`trans_id` AND `stt`.`lang`='" . sql_escape($language)."'
41
+         WHERE `log_types`.`id`='" . sql_escape($logtype)."'",
42 42
         ''
43 43
     );
44 44
 }
Please login to merge, or discard this patch.
htdocs/newdesc.php 2 patches
Spacing   +21 added lines, -22 removed lines patch added patch discarded remove patch
@@ -9,10 +9,10 @@  discard block
 block discarded – undo
9 9
  *  Unicode Reminder メモ
10 10
  ***************************************************************************/
11 11
 
12
-require_once __DIR__ . '/lib/consts.inc.php';
12
+require_once __DIR__.'/lib/consts.inc.php';
13 13
 $opt['gui'] = GUI_HTML;
14
-require_once __DIR__ . '/lib/common.inc.php';
15
-require_once __DIR__ . '/lib2/edithelper.inc.php';
14
+require_once __DIR__.'/lib/common.inc.php';
15
+require_once __DIR__.'/lib2/edithelper.inc.php';
16 16
 
17 17
 //Preprocessing
18 18
 if ($error == false) {
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
         $tplname = 'login';
27 27
 
28 28
         tpl_set_var('username', '');
29
-        tpl_set_var('target', htmlspecialchars('newdesc.php?cacheid=' . urlencode($cache_id), ENT_COMPAT, 'UTF-8'));
29
+        tpl_set_var('target', htmlspecialchars('newdesc.php?cacheid='.urlencode($cache_id), ENT_COMPAT, 'UTF-8'));
30 30
         tpl_set_var('message', $login_required);
31 31
         tpl_set_var('helplink', helppagelink('login'));
32 32
     } else {
@@ -40,15 +40,15 @@  discard block
 block discarded – undo
40 40
             if ($cache_record['user_id'] == $usr['userid']) {
41 41
                 $tplname = 'newdesc';
42 42
 
43
-                require $stylepath . '/newdesc.inc.php';
43
+                require $stylepath.'/newdesc.inc.php';
44 44
 
45 45
                 //get the posted data
46 46
                 $show_all_langs = isset($_POST['show_all_langs']) ? $_POST['show_all_langs'] : 0;
47
-                $short_desc = isset($_POST['short_desc']) ? $_POST['short_desc'] : '';  // Ocprop
47
+                $short_desc = isset($_POST['short_desc']) ? $_POST['short_desc'] : ''; // Ocprop
48 48
 
49
-                $hints = isset($_POST['hints']) ? $_POST['hints'] : '';  // Ocprop
50
-                $sel_lang = isset($_POST['desc_lang']) ? $_POST['desc_lang'] : $default_lang;  // Ocprop
51
-                $desc = isset($_POST['desc']) ? $_POST['desc'] : '';  // Ocprop
49
+                $hints = isset($_POST['hints']) ? $_POST['hints'] : ''; // Ocprop
50
+                $sel_lang = isset($_POST['desc_lang']) ? $_POST['desc_lang'] : $default_lang; // Ocprop
51
+                $desc = isset($_POST['desc']) ? $_POST['desc'] : ''; // Ocprop
52 52
 
53 53
                 // read descMode; if not set, initialize from user profile
54 54
                 if (isset($_POST['descMode'])) {  // Ocprop
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
                         $oldDescMode = $descMode;
66 66
                     }
67 67
                 } else {
68
-                    if (sqlValue("SELECT `no_htmledit_flag` FROM `user` WHERE `user_id`='" . sql_escape($usr['userid']) . "'", 1) == 1) {
68
+                    if (sqlValue("SELECT `no_htmledit_flag` FROM `user` WHERE `user_id`='".sql_escape($usr['userid'])."'", 1) == 1) {
69 69
                         $descMode = 1;
70 70
                     } else {
71 71
                         $descMode = 3;
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
                         // do not use slave server for the next time ...
129 129
                         db_slave_exclude();
130 130
 
131
-                        tpl_redirect('editcache.php?cacheid=' . urlencode($cache_id));
131
+                        tpl_redirect('editcache.php?cacheid='.urlencode($cache_id));
132 132
                         exit;
133 133
                     }
134 134
                 } elseif (isset($_POST['show_all_langs_submit'])) {
@@ -142,8 +142,8 @@  discard block
 block discarded – undo
142 142
                             FROM `languages_list_default`
143 143
                             LEFT JOIN `cache_desc`
144 144
                                 ON `languages_list_default`.`show`=`cache_desc`.`language`
145
-                                AND `cache_desc`.`cache_id`='" . sql_escape($cache_id) . "'
146
-                            WHERE `languages_list_default`.`lang`='" . sql_escape($locale) . "'
145
+                                AND `cache_desc`.`cache_id`='" . sql_escape($cache_id)."'
146
+                            WHERE `languages_list_default`.`lang`='" . sql_escape($locale)."'
147 147
                             AND ISNULL(`cache_desc`.`cache_id`)", 0) == 0
148 148
                     ) {
149 149
                         $show_all_langs = 1;
@@ -179,13 +179,13 @@  discard block
 block discarded – undo
179 179
                     if ($sSelected != '') {
180 180
                         $selected = true;
181 181
                     }
182
-                    $langoptions .= '<option value="' . htmlspecialchars($rLanguage['short'], ENT_COMPAT, 'UTF-8') . '"' . $sSelected . '>' . htmlspecialchars($rLanguage['name'], ENT_COMPAT, 'UTF-8') . '</option>' . "\n";
182
+                    $langoptions .= '<option value="'.htmlspecialchars($rLanguage['short'], ENT_COMPAT, 'UTF-8').'"'.$sSelected.'>'.htmlspecialchars($rLanguage['name'], ENT_COMPAT, 'UTF-8').'</option>'."\n";
183 183
                 }
184 184
                 sql_free_result($rsLanguages);
185 185
                 if ($langoptions == '') {
186 186
                     // We get here if someone has added descriptions for all avaiable languages, which
187 187
                     // is very unlikely to happen ever. Just for completeness (see issue #108):
188
-                    tpl_redirect('editcache.php?cacheid=' . urlencode($cache_id));
188
+                    tpl_redirect('editcache.php?cacheid='.urlencode($cache_id));
189 189
                 }
190 190
 
191 191
                 tpl_set_var('langoptions', $langoptions);
@@ -195,8 +195,7 @@  discard block
 block discarded – undo
195 195
                 tpl_set_var('name', htmlspecialchars($cache_record['name'], ENT_COMPAT, 'UTF-8'));
196 196
                 tpl_set_var('cacheid', htmlspecialchars($cache_id, ENT_COMPAT, 'UTF-8'));
197 197
 
198
-                tpl_set_var('lang_message', $desc_lang_exists ? $lang_message :
199
-                    (isset($_POST['submitform']) && $sel_lang == '0' ? $error_no_lang_selected : ''));
198
+                tpl_set_var('lang_message', $desc_lang_exists ? $lang_message : (isset($_POST['submitform']) && $sel_lang == '0' ? $error_no_lang_selected : ''));
200 199
 
201 200
                 tpl_set_var('show_all_langs', $show_all_langs);
202 201
                 tpl_set_var('show_all_langs_submit', ($show_all_langs == 0) ? $show_all_langs_submit : '');
@@ -209,16 +208,16 @@  discard block
 block discarded – undo
209 208
                 tpl_set_var('descMode', $descMode);
210 209
                 tpl_set_var('htmlnotice', $descMode == 2 ? $htmlnotice : '');
211 210
 
212
-                $headers = tpl_get_var('htmlheaders') . "\n";
211
+                $headers = tpl_get_var('htmlheaders')."\n";
213 212
                 if ($descMode == 3) {
214 213
                     // TinyMCE
215
-                    $headers .= '<script language="javascript" type="text/javascript" src="resource2/tinymce/tiny_mce_gzip.js"></script>' . "\n";
216
-                    $headers .= '<script language="javascript" type="text/javascript" src="resource2/tinymce/config/desc.js.php?cacheid=' . ($cache_id + 0) . '&lang=' . strtolower($locale) . '"></script>' . "\n";
214
+                    $headers .= '<script language="javascript" type="text/javascript" src="resource2/tinymce/tiny_mce_gzip.js"></script>'."\n";
215
+                    $headers .= '<script language="javascript" type="text/javascript" src="resource2/tinymce/config/desc.js.php?cacheid='.($cache_id + 0).'&lang='.strtolower($locale).'"></script>'."\n";
217 216
                 }
218
-                $headers .= '<script language="javascript" type="text/javascript" src="' . editorJsPath() . '"></script>' . "\n";
217
+                $headers .= '<script language="javascript" type="text/javascript" src="'.editorJsPath().'"></script>'."\n";
219 218
                 tpl_set_var('htmlheaders', $headers);
220 219
 
221
-                tpl_set_var('reset', $reset);  // obsolete
220
+                tpl_set_var('reset', $reset); // obsolete
222 221
                 tpl_set_var('submit', $submit);
223 222
             } else {
224 223
                 //TODO: not the owner
Please login to merge, or discard this patch.
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,7 +51,8 @@  discard block
 block discarded – undo
51 51
                 $desc = isset($_POST['desc']) ? $_POST['desc'] : '';  // Ocprop
52 52
 
53 53
                 // read descMode; if not set, initialize from user profile
54
-                if (isset($_POST['descMode'])) {  // Ocprop
54
+                if (isset($_POST['descMode'])) {
55
+// Ocprop
55 56
                     $descMode = $_POST['descMode'] + 0;
56 57
                     if (($descMode < 1) || ($descMode > 3)) {
57 58
                         $descMode = 3;
@@ -89,7 +90,8 @@  discard block
 block discarded – undo
89 90
                 $desc_lang_exists = false;
90 91
 
91 92
                 //save to db?
92
-                if (isset($_POST['submitform']) && $sel_lang != '0') {  // Ocprop
93
+                if (isset($_POST['submitform']) && $sel_lang != '0') {
94
+// Ocprop
93 95
                     //check if the entered language already exists
94 96
                     $desc_rs = sql(
95 97
                         "SELECT `id`
Please login to merge, or discard this patch.
htdocs/adoptcache.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
  *  Unicode Reminder メモ
6 6
  ***************************************************************************/
7 7
 
8
-require __DIR__ . '/lib2/web.inc.php';
8
+require __DIR__.'/lib2/web.inc.php';
9 9
 
10 10
 $tpl->name = 'adoptcache';
11 11
 $tpl->menuitem = MNU_CACHES_ADOPT;
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
 
174 174
     $adopt_result = $cache->addAdoption($userid);
175 175
     if ($adopt_result === true) {
176
-        $tpl->redirect('adoptcache.php?action=listbycache&cacheid=' . $cacheid);
176
+        $tpl->redirect('adoptcache.php?action=listbycache&cacheid='.$cacheid);
177 177
     } else {
178 178
         $tpl->assign('error', $adopt_result);
179 179
         listRequestsByCacheId($cacheid);
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
         $tpl->error(ERROR_UNKNOWN);
195 195
     }
196 196
 
197
-    $tpl->redirect('viewcache.php?cacheid=' . $cacheid);
197
+    $tpl->redirect('viewcache.php?cacheid='.$cacheid);
198 198
 }
199 199
 
200 200
 function cancelRequest($cacheid, $userid)
@@ -218,6 +218,6 @@  discard block
 block discarded – undo
218 218
     if ($userid == $login->userid) {
219 219
         $tpl->redirect('adoptcache.php');
220 220
     } else {
221
-        $tpl->redirect('adoptcache.php?action=listbycache&cacheid=' . $cacheid);
221
+        $tpl->redirect('adoptcache.php?action=listbycache&cacheid='.$cacheid);
222 222
     }
223 223
 }
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,8 @@
 block discarded – undo
61 61
     } else {
62 62
         showAdoptScreen($cacheid, $submit);
63 63
     }
64
-} else { // if ($action == 'listbyuser')
64
+} else {
65
+// if ($action == 'listbyuser')
65 66
     $tpl->assign('action', 'listbyuser');
66 67
     listRequestsByUserId();
67 68
 }
Please login to merge, or discard this patch.
htdocs/viewprofile.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
  *  Unicode Reminder メモ
6 6
  ***************************************************************************/
7 7
 
8
-require __DIR__ . '/lib2/web.inc.php';
8
+require __DIR__.'/lib2/web.inc.php';
9 9
 
10 10
 $tpl->name = 'viewprofile';
11 11
 $tpl->menuitem = MNU_CACHES_USERPROFILE;
@@ -291,14 +291,14 @@  discard block
 block discarded – undo
291 291
 }
292 292
 
293 293
 if ($show_oconly81) {
294
-    require __DIR__ . '/lib2/logic/oconly81.inc.php';
294
+    require __DIR__.'/lib2/logic/oconly81.inc.php';
295 295
     set_oconly81_tpldata($userid);
296 296
 }
297 297
 
298 298
 //Titel
299 299
 $menu->SetSelectItem($tpl->menuitem);
300 300
 
301
-$tpl->title = $menu->GetMenuTitle() . " " . $record['username'];
301
+$tpl->title = $menu->GetMenuTitle()." ".$record['username'];
302 302
 
303 303
 
304 304
 $tpl->assign('username', $record['username']);
@@ -329,7 +329,7 @@  discard block
 block discarded – undo
329 329
     if (!$allpics) {
330 330
         $tpl->assign('logpics', LogPics::get(LogPics::FOR_USER_STAT, $userid));
331 331
     } else {
332
-        LogPics::setPaging(LogPics::FOR_USER_GALLERY, $userid, 0, "viewprofile.php?userid=" . $userid . "&allpics=1");
332
+        LogPics::setPaging(LogPics::FOR_USER_GALLERY, $userid, 0, "viewprofile.php?userid=".$userid."&allpics=1");
333 333
         $tpl->name = 'viewprofile_pics';
334 334
         // actually we dont need all the other stuff here ..
335 335
     }
Please login to merge, or discard this patch.
htdocs/adminreports.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
  *  Unicode Reminder メモ
6 6
  ***************************************************************************/
7 7
 
8
-require __DIR__ . '/lib2/web.inc.php';
8
+require __DIR__.'/lib2/web.inc.php';
9 9
 
10 10
 $tpl->name = 'adminreports';
11 11
 $tpl->menuitem = MNU_ADMIN_REPORTS;
@@ -43,15 +43,15 @@  discard block
 block discarded – undo
43 43
     ($adminid == 0 || ($adminid != $login->userid && $age >= 14))
44 44
 ) {
45 45
     sql("UPDATE `cache_reports` SET `status`=2, `adminid`=&2 WHERE `id`=&1", $rid, $login->userid);
46
-    $tpl->redirect('adminreports.php?id=' . $rid);
46
+    $tpl->redirect('adminreports.php?id='.$rid);
47 47
 } elseif (isset($_REQUEST['contact']) && $ownerid > 0) {
48 48
     $wp_oc = sql_value("SELECT `wp_oc` FROM `caches` WHERE `cache_id`='&1'", '', $cacheid);
49
-    $tpl->redirect('mailto.php?userid=' . urlencode($ownerid) . '&wp=' . $wp_oc);
49
+    $tpl->redirect('mailto.php?userid='.urlencode($ownerid).'&wp='.$wp_oc);
50 50
 } elseif (isset($_REQUEST['contact_reporter']) && $reporterid > 0) {
51
-    $tpl->redirect('mailto.php?userid=' . urlencode($reporterid) . '&reportid=' . $rid);
51
+    $tpl->redirect('mailto.php?userid='.urlencode($reporterid).'&reportid='.$rid);
52 52
 } elseif (isset($_REQUEST['done']) && $adminid == $login->userid) {
53 53
     sql("UPDATE `cache_reports` SET `status`=3 WHERE `id`=&1", $rid);
54
-    $tpl->redirect('adminreports.php?id=' . $rid);
54
+    $tpl->redirect('adminreports.php?id='.$rid);
55 55
 } elseif (isset($_REQUEST['assign']) && ($adminid == 0 || $adminid != $login->userid)) {
56 56
     $error = 1;
57 57
     $id = 0;
Please login to merge, or discard this patch.
htdocs/event_attendance.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
  *  Unicode Reminder メモ
6 6
  ***************************************************************************/
7 7
 
8
-require __DIR__ . '/lib2/web.inc.php';
8
+require __DIR__.'/lib2/web.inc.php';
9 9
 
10 10
 $tpl->name = 'event_attendance';
11 11
 $tpl->popup = true;
Please login to merge, or discard this patch.
local/devel/find_bad_encodings.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -39,6 +39,9 @@
 block discarded – undo
39 39
 }
40 40
 
41 41
 
42
+/**
43
+ * @param string $path
44
+ */
42 45
 function testforbom($path)
43 46
 {
44 47
     $filestart = file_get_contents($path, false, null, 0, 2);
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
  *  Searches for files which are no longer Unicode-encoded
8 8
  ***************************************************************************/
9 9
 
10
-chdir(__DIR__ . '/../../htdocs');
10
+chdir(__DIR__.'/../../htdocs');
11 11
 require_once 'lib2/cli.inc.php';
12 12
 
13 13
 
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
     $hDir = opendir($dir);
26 26
     if ($hDir !== false) {
27 27
         while (($file = readdir($hDir)) !== false) {
28
-            $path = $dir . '/' . $file;
28
+            $path = $dir.'/'.$file;
29 29
             if (is_dir($path) && substr($file, 0, 1) !== '.' && $subdirs) {
30 30
                 scan($path, $subdirs);
31 31
             } else {
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 
42 42
 function test_encoding($path)
43 43
 {
44
-    static $ur_exclude = [  // no unicode reminder needed
44
+    static $ur_exclude = [// no unicode reminder needed
45 45
         'lang/de/ocstyle/search1/search.result.caches',
46 46
         'lib2/b2evo-captcha',
47 47
         'lib2/HTMLPurifier',
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
         if (mb_trim(mb_substr($contents, $ur + 17, 2)) != "メモ") {
58 58
             $ur = mb_stripos($contents, "Unicode Reminder");
59 59
             if (mb_trim(mb_substr($contents, $ur + 17, 2)) != "メモ") {
60
-                echo "Bad Unicode Reminder found in $path: " . mb_trim(mb_substr($contents, $ur + 17, 2)) . "\n";
60
+                echo "Bad Unicode Reminder found in $path: ".mb_trim(mb_substr($contents, $ur + 17, 2))."\n";
61 61
             } else {
62 62
                 echo "Unexpected non-ASCII chars (BOMs?) in header of $path\n";
63 63
             }
Please login to merge, or discard this patch.
local/maintenance/update_passwords.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -8,9 +8,9 @@
 block discarded – undo
8 8
  ***************************************************************************/
9 9
 
10 10
 global $opt;
11
-$opt['rootpath'] = __DIR__ . '/../../htdocs/';
12
-require $opt['rootpath'] . 'lib2/cli.inc.php';
13
-require $opt['rootpath'] . 'lib2/logic/crypt.class.php';
11
+$opt['rootpath'] = __DIR__.'/../../htdocs/';
12
+require $opt['rootpath'].'lib2/cli.inc.php';
13
+require $opt['rootpath'].'lib2/logic/crypt.class.php';
14 14
 
15 15
 if (!isset($opt['logic']['password_salt']) || strlen($opt['logic']['password_salt']) < 32) {
16 16
     echo "Warning!\nPassword Salt not set or too short!\n\n";
Please login to merge, or discard this patch.
local/maintenance/update_queries.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  ***************************************************************************/
10 10
 
11 11
 $opt['rootpath'] = '../../htdocs/';
12
-require $opt['rootpath'] . 'lib2/web.inc.php';
12
+require $opt['rootpath'].'lib2/web.inc.php';
13 13
 
14 14
 if ($argc != 2 || $argv[1] != 'go') {
15 15
     die("run with parameter 'go' to update queries\n");
@@ -22,15 +22,15 @@  discard block
 block discarded – undo
22 22
         $cachesize = $query['cachesize'];
23 23
 
24 24
         // add nano size to all queries that include micro or other
25
-        if (preg_match('/[;][12][;]/', ';' . $cachesize . ';') &&
26
-            !preg_match('/[;][8][;]/', ';' . $cachesize . ';')
25
+        if (preg_match('/[;][12][;]/', ';'.$cachesize.';') &&
26
+            !preg_match('/[;][8][;]/', ';'.$cachesize.';')
27 27
         ) {
28 28
             // echo $r['name'] . ": " . $cachesize . " -> " . $query['cachesize'] .= ";8\n";
29 29
             $query['cachesize'] .= ';8';
30 30
             $saveopt = serialize($query);
31 31
             // sql("UPDATE queries SET `options`='&1' WHERE `id`='&2'", $saveopt, $r['id']);
32 32
             // ^^ run this line only if you are absolutely sure what you are doing
33
-            echo 'added nano to query ' . $r['id'] . "(" . $cachesize . ') of user ' . $r['user_id'] . "\n";
33
+            echo 'added nano to query '.$r['id']."(".$cachesize.') of user '.$r['user_id']."\n";
34 34
         }
35 35
     }
36 36
 }
Please login to merge, or discard this patch.