1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-06 14:46:56 +02:00

PHP warning fixes.

This commit is contained in:
Cameron
2020-12-31 08:01:34 -08:00
parent 5f1fc512fc
commit 798638a590
3 changed files with 7 additions and 2 deletions

View File

@@ -3068,6 +3068,7 @@ class e107plugin
*/ */
function XmlTables($function, $plug, $options = array()) function XmlTables($function, $plug, $options = array())
{ {
$txt = '';
$this->log("Running ".__METHOD__); $this->log("Running ".__METHOD__);
$sqlFile = e_PLUGIN.$plug['plugin_path'].'/'.str_replace("_menu","", $plug['plugin_path'])."_sql.php"; $sqlFile = e_PLUGIN.$plug['plugin_path'].'/'.str_replace("_menu","", $plug['plugin_path'])."_sql.php";
@@ -3495,6 +3496,8 @@ class e107plugin
{ {
$this->log("Running ".__FUNCTION__); $this->log("Running ".__FUNCTION__);
$status = false;
$mes = e107::getMessage(); $mes = e107::getMessage();
if(!empty($this->options['nolinks'])) if(!empty($this->options['nolinks']))
@@ -4239,6 +4242,8 @@ class e107plugin
} }
global $sysprefs, $mySQLprefix; global $sysprefs, $mySQLprefix;
$text = '';
$ns = e107::getRender(); $ns = e107::getRender();
$sql = e107::getDb(); $sql = e107::getDb();

View File

@@ -1148,7 +1148,7 @@ if(!deftrue('OLD_FORUMADMIN'))
public function init() public function init()
{ {
$id = intval($_GET['id']); $id = (int) varset($_GET['id']);
if(!empty($id)) if(!empty($id))
{ {

View File

@@ -40,7 +40,7 @@ $f = new forumUpgrade;
$sql = e107::getDb(); $sql = e107::getDb();
if($_GET['reset']) if(!empty($_GET['reset']))
{ {
unset($_SESSION['forumUpgrade']); unset($_SESSION['forumUpgrade']);
unset($_SESSION['forumupdate']); unset($_SESSION['forumupdate']);