Ignore:
Timestamp:
Feb 21, 2021, 6:36:30 PM (4 years ago)
Author:
ddtddt
Message:

[PersoAbout] bug php 7.4 Thanks to Ralf

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/PersoAbout/main.inc.php

    r32422 r32462  
    5353
    5454function ppa(){
    55   global $template, $conf;
     55  global $template, $conf, $pwg_loaded_plugins;
    5656  $template->set_prefilter('about', 'ppaT');
    57   $PAED = pwg_db_fetch_assoc(pwg_query("SELECT state FROM " . PLUGINS_TABLE . " WHERE id = 'ExtendedDescription';"));
    58   if($PAED['state'] == 'active') add_event_handler('AP_render_content', 'get_user_language_desc');
     57  if (isset($pwg_loaded_plugins['ExtendedDescription'])){
     58        add_event_handler('AP_render_content', 'get_user_language_desc');
     59  }
    5960  $pat=trigger_change('AP_render_content', $conf['persoAbout']);
    6061  if (!empty($pat)){
Note: See TracChangeset for help on using the changeset viewer.