1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-23 14:44:29 +02:00

Issue #4299 - PHP8 compatibility fixes.

This commit is contained in:
Cameron
2020-12-25 10:23:56 -08:00
parent 76d72b1c08
commit 7dfac0dcfa
27 changed files with 145 additions and 81 deletions

View File

@@ -196,7 +196,13 @@ class download_cat_ui extends e_admin_ui
while($row = $sql->fetch())
{
$num = $row['_depth'] - 1;
$num = (int) $row['_depth'] - 1;
if($num < 0)
{
$num = 0;
}
$id = $row['download_category_id'];
$this->downloadCats[$id] = str_repeat("&nbsp;&nbsp;",$num).$row['download_category_name'];
}
@@ -2314,7 +2320,7 @@ $columnInfo = array(
<col style='width:70%'/>
</colgroup>
<tr>
<td>".DOWLAN_XXX."</td>
<td>".defset('DOWLAN_XXX')."</td>
<td>//TODO</td>
</tr>
</table>