mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 03:40:37 +02:00
PHP warning fixes.
This commit is contained in:
@@ -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