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:
Jeena 2020-04-05 17:42:46 +02:00
parent 7af86452ff
commit 23c3d3b65b
7 changed files with 22 additions and 22 deletions

View file

@ -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'];