Changeset 32704


Ignore:
Timestamp:
Jan 6, 2022, 9:12:58 PM (2 years ago)
Author:
ddtddt
Message:

[title] notice

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/title/initadmin.php

    r32649 r32704  
    6363        $result = pwg_query($query);
    6464        $row = pwg_db_fetch_assoc($result);
    65     $titleP=$row['title'];
     65        if (isset($row['title'])){
     66     $titleP=$row['title'];
     67         $template->assign(
     68      array(
     69        'titleICONTENT' => $titleP,
     70     ));
     71        }
    6672        if (isset($pwg_loaded_plugins['ExtendedDescription'])){
    6773          $template->assign('useED',1);
     
    6975      $template->assign('useED',0);
    7076    }
    71     $template->assign(
    72       array(
    73         'titleICONTENT' => $titleP,
    74     ));
     77
    7578  }
    7679  if (isset($_POST['insertitleP'])){
     
    119122        $result = pwg_query($query);
    120123        $row = pwg_db_fetch_assoc($result);
    121         $titleA=$row['title'];
     124        if (isset($row['title'])){
     125         $titleA=$row['title'];
     126         $template->assign(
     127      array(
     128        'titleCONTENT' => $titleA,
     129     ));
     130        }
    122131        if (isset($pwg_loaded_plugins['ExtendedDescription'])){
    123132          $template->assign('useED',1);
     
    125134      $template->assign('useED',0);
    126135    }
    127         $template->assign(
    128       array(
    129         'titleCONTENT' => $titleA,
    130     ));
     136
    131137  }
    132138  if (isset($_POST['insertitleA'])){
Note: See TracChangeset for help on using the changeset viewer.