diff --git a/front/ticketmail.form.php b/front/ticketmail.form.php index f08a0bb..a61ed30 100755 --- a/front/ticketmail.form.php +++ b/front/ticketmail.form.php @@ -21,7 +21,7 @@ if ($result = $DB->query($query)) { if ($DB->numrows($result) > 0) { - $row = $DB->fetch_assoc($result); + $row = $result->fetch_assoc(); $mmail->setFrom($row['email'], $row['firstname'].' '.$row['realname']); } } diff --git a/setup.php b/setup.php index aad731e..e8c8be1 100755 --- a/setup.php +++ b/setup.php @@ -2,7 +2,7 @@ define('TICKETMAIL_VERSION', '3.5.0'); define('TICKETMAIL_MIN_GLPI_VERSION', '9.4'); -define('TICKETMAIL_MAX_GLPI_VERSION', '9.6'); +define('TICKETMAIL_MAX_GLPI_VERSION', '11.0'); if (!defined("PLUGIN_TICKETMAIL_DIR")) { define("PLUGIN_TICKETMAIL_DIR", Plugin::getPhpDir("ticketmail")); }