@@ -17,8 +17,9 @@ |
||
| 17 | 17 | $userid = isset($_REQUEST['userid']) ? $_REQUEST['userid'] + 0 : 0; |
| 18 | 18 | $lang = isset($_REQUEST['lang']) ? mb_strtoupper($_REQUEST['lang']) : $opt['template']['locale']; |
| 19 | 19 | |
| 20 | -if (!isset($opt['locale'][$lang])) |
|
| 20 | +if (!isset($opt['locale'][$lang])) { |
|
| 21 | 21 | $lang = $opt['template']['locale']; |
| 22 | +} |
|
| 22 | 23 | |
| 23 | 24 | $filename = GetFilename($userid, $lang); |
| 24 | 25 | |
@@ -112,7 +112,8 @@ discard block |
||
| 112 | 112 | $emailadr |
| 113 | 113 | ); |
| 114 | 114 | } else { |
| 115 | - if ($bounced) // maximum one bounce per day is counted, to filter out temporary problems |
|
| 115 | + if ($bounced) { |
|
| 116 | + // maximum one bounce per day is counted, to filter out temporary problems |
|
| 116 | 117 | { |
| 117 | 118 | sql( |
| 118 | 119 | "UPDATE `user` SET `email_problems`=`email_problems`+1, `last_email_problem`='&2' |
@@ -121,6 +122,7 @@ discard block |
||
| 121 | 122 | $logentry['created'] |
| 122 | 123 | ); |
| 123 | 124 | } |
| 125 | + } |
|
| 124 | 126 | } |
| 125 | 127 | } else { |
| 126 | 128 | echo $this->name . ": no email address found for record ID " . $logentry['id'] . "\n"; |
@@ -88,8 +88,9 @@ |
||
| 88 | 88 | $tpl->assign('coordW3W2', $coord->getW3W($w3w_langs[1])); |
| 89 | 89 | $lang2_name = sql_value("SELECT `name` FROM `languages` WHERE `short`='&1'", '', $w3w_langs[1]); |
| 90 | 90 | $tpl->assign('W3Wlang2', $translate->t($lang2_name, '', '', 0)); |
| 91 | -} else |
|
| 91 | +} else { |
|
| 92 | 92 | $tpl->assign('coordW3W2', false); |
| 93 | +} |
|
| 93 | 94 | |
| 94 | 95 | // wp gesetzt? |
| 95 | 96 | $wp = isset($_REQUEST['wp']) ? $_REQUEST['wp'] : ''; |
@@ -106,9 +106,9 @@ |
||
| 106 | 106 | } |
| 107 | 107 | } else { |
| 108 | 108 | // save as |
| 109 | - if (sql_value("SELECT COUNT(*) FROM `queries` WHERE `id`='&1' AND `user_id`='&2'", 0, $saveas_queryid, $login->userid) == 0) |
|
| 110 | - $tpl->assign('errorMustSelectQuery', true); |
|
| 111 | - else { |
|
| 109 | + if (sql_value("SELECT COUNT(*) FROM `queries` WHERE `id`='&1' AND `user_id`='&2'", 0, $saveas_queryid, $login->userid) == 0) { |
|
| 110 | + $tpl->assign('errorMustSelectQuery', true); |
|
| 111 | + } else { |
|
| 112 | 112 | sql("UPDATE `queries` SET `options`='&1' WHERE `id`='&2'", $options, $saveas_queryid); |
| 113 | 113 | $tpl->redirect('query.php?action=view'); |
| 114 | 114 | } |
@@ -1,9 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | - if (isset($_REQUEST['lang'])) |
|
| 3 | - $lang = $_REQUEST['lang']; |
|
| 4 | - else |
|
| 5 | - $lang = 'de'; |
|
| 6 | -?> |
|
| 2 | + if (isset($_REQUEST['lang'])) { |
|
| 3 | + $lang = $_REQUEST['lang']; |
|
| 4 | + } else { |
|
| 5 | + $lang = 'de'; |
|
| 6 | + } |
|
| 7 | + ?> |
|
| 7 | 8 | |
| 8 | 9 | tinyMCE_GZ.init({ |
| 9 | 10 | plugins : 'advhr,contextmenu,emotions,insertdatetime,paste,table', |