Skip to content
This repository has been archived by the owner on Sep 9, 2022. It is now read-only.

Commit

Permalink
Prepare 9.5
Browse files Browse the repository at this point in the history
  • Loading branch information
tsmr committed Jun 10, 2020
1 parent 8bb267a commit 475d3be
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion inc/dashboard.class.php
Expand Up @@ -86,7 +86,7 @@ public function getWidgetContentForItem($widgetId) {
$tickets = [];

if ($nb) {
while ($data = $DB->fetch_assoc($result)) {
while ($data = $DB->fetchAssoc($result)) {

$ticket = new Ticket();
$ticket->getFromDB($data['tickets_id']);
Expand Down
5 changes: 4 additions & 1 deletion inc/rulevipcollection.class.php
Expand Up @@ -39,7 +39,10 @@ class PluginVipRuleVipCollection extends RuleCollection {
// From RuleCollection
public static $rightname = 'plugin_vip';
public $menu_option = 'vip';


static function canView() {
return Session::haveRight(self::$rightname, UPDATE);
}
/**
* @return translated
*/
Expand Down
10 changes: 5 additions & 5 deletions setup.php
Expand Up @@ -27,7 +27,7 @@
--------------------------------------------------------------------------
*/

define('PLUGIN_VIP_VERSION', '1.6.0');
define('PLUGIN_VIP_VERSION', '1.7.0');

// Init the hooks of the plugins -Needed
function plugin_init_vip() {
Expand Down Expand Up @@ -83,7 +83,7 @@ function plugin_version_vip() {
'homepage' => 'https://github.com/InfotelGLPI/vip',
'requirements' => [
'glpi' => [
'min' => '9.4',
'min' => '9.5',
'dev' => false
]
]
Expand All @@ -92,10 +92,10 @@ function plugin_version_vip() {

function plugin_vip_check_prerequisites() {

if (version_compare(GLPI_VERSION, '9.4', 'lt')
|| version_compare(GLPI_VERSION, '9.5', 'ge')) {
if (version_compare(GLPI_VERSION, '9.5', 'lt')
|| version_compare(GLPI_VERSION, '9.6', 'ge')) {
if (method_exists('Plugin', 'messageIncompatible')) {
echo Plugin::messageIncompatible('core', '9.4');
echo Plugin::messageIncompatible('core', '9.5');
}
return false;
}
Expand Down

0 comments on commit 475d3be

Please sign in to comment.