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:
@@ -3068,6 +3068,7 @@ class e107plugin
|
||||
*/
|
||||
function XmlTables($function, $plug, $options = array())
|
||||
{
|
||||
$txt = '';
|
||||
$this->log("Running ".__METHOD__);
|
||||
|
||||
$sqlFile = e_PLUGIN.$plug['plugin_path'].'/'.str_replace("_menu","", $plug['plugin_path'])."_sql.php";
|
||||
@@ -3495,6 +3496,8 @@ class e107plugin
|
||||
{
|
||||
$this->log("Running ".__FUNCTION__);
|
||||
|
||||
$status = false;
|
||||
|
||||
$mes = e107::getMessage();
|
||||
|
||||
if(!empty($this->options['nolinks']))
|
||||
@@ -4239,6 +4242,8 @@ class e107plugin
|
||||
}
|
||||
|
||||
global $sysprefs, $mySQLprefix;
|
||||
|
||||
$text = '';
|
||||
|
||||
$ns = e107::getRender();
|
||||
$sql = e107::getDb();
|
||||
|
@@ -1148,7 +1148,7 @@ if(!deftrue('OLD_FORUMADMIN'))
|
||||
public function init()
|
||||
{
|
||||
|
||||
$id = intval($_GET['id']);
|
||||
$id = (int) varset($_GET['id']);
|
||||
|
||||
if(!empty($id))
|
||||
{
|
||||
|
@@ -40,7 +40,7 @@ $f = new forumUpgrade;
|
||||
|
||||
$sql = e107::getDb();
|
||||
|
||||
if($_GET['reset'])
|
||||
if(!empty($_GET['reset']))
|
||||
{
|
||||
unset($_SESSION['forumUpgrade']);
|
||||
unset($_SESSION['forumupdate']);
|
||||
|
Reference in New Issue
Block a user