Update log and admin to work with PHP v 7.2
Mostly changing mysql_ to mysqli_ but also some OOP fixes it classes, especially the bbcode parser which doesn't have a new version working with PHP 7.
This commit is contained in:
parent
7af86452ff
commit
23c3d3b65b
7 changed files with 22 additions and 22 deletions
3
log.php
3
log.php
|
@ -149,7 +149,8 @@ elseif(isset($com_form['form_submitted']) AND $com_form['form_submitted'] == $l[
|
|||
)";
|
||||
|
||||
$newcomment = new Query($sql);
|
||||
$cid = mysql_insert_id();
|
||||
global $mysql;
|
||||
$cid = mysqli_insert_id($mysql);
|
||||
if($newcomment->error()) {
|
||||
if($newcomment->getErrno() == 1062) {
|
||||
$errors[] = $l['comments_duplicate'];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue