Уборка Unreachable statement. Замена === на == и !== на != в яваскриптах из-за ошибок с нестрогой типизацией при переходе на 7.4.

This commit is contained in:
2023-04-08 18:14:19 +03:00
parent 3f3ffc2114
commit cfaf82f73a
76 changed files with 2079 additions and 1918 deletions
+7 -5
View File
@@ -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;">&nbsp;</td>
<td style="width: 12px; height: 31px; background-color: #d6d6d6;"></td>
<td style="width: 9px; background-color: #d6d6d6;"></td>
<td style="background-color: #d6d6d6;">&nbsp;</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>