Erreur dans classe Timeline avec v4.1.00 avec cmd

Dans la version 4.1.00

[Thu Dec 12 13:49:10.109409 2019] [php7:notice] [pid 730] [client 192.168.1.49:50696] PHP Notice:  Undefined variable: _event in /var/www/html/core/class/timeline.class.php on line 149, referer: https://jeedomleo.ddns.net/index.php?v=d&p=history
[Thu Dec 12 13:49:10.109481 2019] [php7:notice] [pid 730] [client 192.168.1.49:50696] PHP Notice:  Undefined variable: _event in /var/www/html/core/class/timeline.class.php on line 156, referer: https://jeedomleo.ddns.net/index.php?v=d&p=history

Dans le case « cmd », le tableau $_event n’est tout simplement pas crée mais fait partie du if…

  public function getDisplay() {
    switch ($this->getType()) {
      case 'cmd':
        $return = array();
        $return['date'] = $this->getDatetime();
        $return['type'] = $this->getType();
        $return['group'] = $this->getSubtype();
        $cmd = cmd::byId($this->getLink_id());
        if (!is_object($cmd)) {
          return null;
        }
        $eqLogic = $cmd->getEqLogic();
        $object = $eqLogic->getObject();
        $return['object'] = is_object($object) ? $object->getId() : 'aucun';
        $return['plugins'] = $eqLogic->getEqType_name();
        $return['category'] = $eqLogic->getCategory();

        $name = str_replace(array('<br/><strong>','</strong>'), '',  $this->getName());
        $name = str_replace('<span class="label"', '<span class="label-sm"',  $name);
        if ($_event['subtype'] == 'action') {

Bon courage

Bonjour,
Merci pour le retour c’est corrigé

Ce sujet a été automatiquement fermé après 24 heures suivant le dernier commentaire. Aucune réponse n’est permise dorénavant.