Skip to content

Commit

Permalink
GLPI10 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
ctresvauxp6 committed Jan 11, 2023
1 parent 4edffc2 commit 2854948
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion front/ticketmail.form.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
}
}
Expand Down
2 changes: 1 addition & 1 deletion setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
}
Expand Down

0 comments on commit 2854948

Please sign in to comment.