Уборка Unreachable statement. Замена === на == и !== на != в яваскриптах из-за ошибок с нестрогой типизацией при переходе на 7.4.
This commit is contained in:
+7
-5
@@ -32,6 +32,8 @@ $u = User::start();
|
||||
$filter = new Filter();
|
||||
$chat = new Chat();
|
||||
|
||||
var_dump($_SESSION['uid'], $_COOKIE['login']);
|
||||
|
||||
ini_set('max_execution_time', '120');
|
||||
|
||||
if (isset($_GET['showcode'])) {
|
||||
@@ -97,7 +99,7 @@ $u->stats = $u->getStats($u->info['id'], 0);
|
||||
|
||||
// Проверка на совпедение города.
|
||||
function ctest(city) {
|
||||
if (city !== c['city']) {
|
||||
if (city != c['city']) {
|
||||
top.location = '/bk';
|
||||
}
|
||||
}
|
||||
@@ -777,11 +779,11 @@ $u->stats = $u->getStats($u->info['id'], 0);
|
||||
</table>
|
||||
<!-- -->
|
||||
</div>
|
||||
<table id="globalMain" style="width: 100%; height: 100%; border: 0;" cellspacing="0" cellpadding="0">
|
||||
<table id="globalMain" style="width: 100%; height: 99%; border: 0;" cellspacing="0" cellpadding="0">
|
||||
<tr id="headerTd">
|
||||
<td style="width: 9px; height: 31px; background-color: #d6d6d6;"></td>
|
||||
<td style="height: 31px; background-color: #d6d6d6;"> </td>
|
||||
<td style="width: 12px; height: 31px; background-color: #d6d6d6;"></td>
|
||||
<td style="width: 9px; background-color: #d6d6d6;"></td>
|
||||
<td style="background-color: #d6d6d6;"> </td>
|
||||
<td style="width: 12px; background-color: #d6d6d6;"></td>
|
||||
</tr>
|
||||
<tr id="sectionTd">
|
||||
<td class="deleteStyles" style="background-color: #d6d6d6; background-image: url('https://img.new-combats.com/i/lite/_top_24.gif')"></td>
|
||||
|
||||
Reference in New Issue
Block a user