mirror of
https://github.com/e107inc/e107.git
synced 2025-08-28 16:50:07 +02:00
PHP warning fixes.
This commit is contained in:
@@ -896,7 +896,7 @@ class banlist_form_ui extends e_admin_form_ui
|
||||
// optional
|
||||
public function init()
|
||||
{
|
||||
if($_POST['etrigger_batch'] == 'gen_intdata__1' && count($_POST['e-multiselect'])) // Do we need BAN here?
|
||||
if(varset($_POST['etrigger_batch']) == 'gen_intdata__1' && count($_POST['e-multiselect'])) // Do we need BAN here?
|
||||
{
|
||||
$dels = implode(',',$_POST['e-multiselect']);
|
||||
//$e107::getDb()->insert('banlist',
|
||||
|
@@ -106,7 +106,7 @@ e107::coreLan('userclass2', true);
|
||||
public function init()
|
||||
{
|
||||
|
||||
if(E107_DBG_BASIC && intval($_GET['id']) === 254) // Experimental
|
||||
if(E107_DBG_BASIC && isset($_GET['id']) && intval($_GET['id']) === 254) // Experimental
|
||||
{
|
||||
e107::getMessage()->addDebug("Experimental Feature active");
|
||||
$this->tabs = array(LAN_GENERAL,"Administrator Permissions");
|
||||
|
@@ -770,7 +770,7 @@ e107::js('footer-inline', js());
|
||||
<tr>
|
||||
<td>{$var['user_extended_struct_name']}</td>
|
||||
<td>".constant(strtoupper($var['user_extended_struct_text'])."_DESC")."</td>
|
||||
<td>".$ue->user_extended_edit($var,$uVal)."</td>
|
||||
<td>".$ue->user_extended_edit($var,'')."</td>
|
||||
<td>".$tp->toHTML($var['type'], false, 'defs')."</td>
|
||||
<td class='center'>".($active ? ADMIN_TRUE_ICON : " ")."</td>
|
||||
";
|
||||
@@ -927,7 +927,7 @@ e107::js('footer-inline', js());
|
||||
|
||||
$current = $this->getController()->getModel()->getData();
|
||||
|
||||
$type = intval($current['user_extended_struct_type']);
|
||||
$type = (int) varset($current['user_extended_struct_type']);
|
||||
|
||||
$val_hide = ($type !== EUF_DB_FIELD && $type !== EUF_TEXT && $type !== EUF_COUNTRY ) ? "visible" : "none";
|
||||
|
||||
|
Reference in New Issue
Block a user