mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 10:37:30 -07:00
Deprecated each() function in php 7.2
This commit is contained in:
parent
0aae80ba8e
commit
3d817078a6
15 changed files with 49 additions and 45 deletions
|
@ -64,7 +64,7 @@ if (isset($_REQUEST['addforum']) || isset($_REQUEST['addcategory'])) {
|
|||
|
||||
if ($mode == 'addforum' && isset($_POST['addforum']) && isset($_POST['forumname']) && is_array($_POST['addforum'])) {
|
||||
$req_cat_id = array_keys($_POST['addforum']);
|
||||
$cat_id = $req_cat_id[0];
|
||||
$cat_id = reset($req_cat_id);
|
||||
$forumname = stripslashes($_POST['forumname'][$cat_id]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue