1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-11 17:14:42 +02:00

Code cleanup

This commit is contained in:
Cameron
2017-01-18 19:26:49 -08:00
parent 500ec0c477
commit 7ff00cec98
2 changed files with 5 additions and 6 deletions

View File

@@ -784,16 +784,15 @@ class page_admin_ui extends e_admin_ui
$chap = intval($row['page_chapter']);
$this->tabs[] = "Additional Fields";
$curVal = e107::unserialize($row['page_fields']);
$tabCount = count($this->tabs) -1;
$this->getModel()->set('page_fields', null);
if(!empty($this->chapterFields[$chap]))
{
$curVal = e107::unserialize($row['page_fields']);
$this->tabs[] = "Additional Fields";
$tabCount = count($this->tabs) -1;
foreach($this->chapterFields[$chap] as $key=>$fld)
{

View File

@@ -5786,7 +5786,7 @@ e107::getDebug()->log($sc_parameters);
$text .= "
<tr><td colspan='2'>";
$text .= (varset($writeParms['nolabel']) == 2) ? '' : "<div style='padding-bottom:8px'>".$leftCell."</div>" ;
$text .= (isset($writeParms['nolabel']) && $writeParms['nolabel'] == 2) ? '' : "<div style='padding-bottom:8px'>".$leftCell."</div>" ;
$text .= $rightCell."
</td>