Skip to content

Commit

Permalink
Fix functions name
Browse files Browse the repository at this point in the history
  • Loading branch information
tsmr committed Oct 24, 2020
1 parent 5c157b1 commit fea0740
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion front/deleted_equiv.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
PluginOcsinventoryngOcsProcess::manageDeleted($_SESSION["plugin_ocsinventoryng_ocsservers_id"]);
}

if ($_SESSION["ocs_deleted_equiv"]["total"] != $_SESSION["ocs_deleted_equiv"]["deleted"] && $_SESSION["ocs_deleted_equiv"]["last_req"]) {
if ($_SESSION["ocs_deleted_equiv"]["total"] != $_SESSION["ocs_deleted_equiv"]["deleted"] && isset($_SESSION["ocs_deleted_equiv"]["last_req"])) {

echo $_SESSION["ocs_deleted_equiv"]["deleted"] . "/" . $_SESSION["ocs_deleted_equiv"]["total"];
echo "<br><br>";
Expand Down
8 changes: 4 additions & 4 deletions hook.php
Original file line number Diff line number Diff line change
Expand Up @@ -2222,7 +2222,7 @@ function addNotifications() {
NOW(), '', NULL,
NOW());";
$DB->queryOrDie($query, $DB->error());
$templates_id = $DB->insert_id();
$templates_id = $DB->insertId();
$query = "INSERT INTO `glpi_notificationtemplatetranslations`
VALUES (NULL, $templates_id, '',
'##lang.notimported.action## : ##notimported.entity##',
Expand Down Expand Up @@ -2267,7 +2267,7 @@ function addNotifications() {
(`name`, `itemtype`)
VALUES ('Check rule import entity', 'PluginOcsinventoryngRuleImportEntity');";
$DB->queryOrDie($query, $DB->error());
$templates_id = $DB->insert_id();
$templates_id = $DB->insertId();
//Add translations
$query = "INSERT INTO `glpi_notificationtemplatetranslations`
(`notificationtemplates_id`, `subject`, `content_text`, `content_html`)
Expand Down Expand Up @@ -2745,7 +2745,7 @@ function plugin_ocsinventoryng_upgrademassocsimport14to15() {
"VALUES (NULL, 'Computers not imported', 'PluginMassocsimportNotimported',
NOW(), '', '', NOW());";
$DB->queryOrDie($query, $DB->error());
$templates_id = $DB->insert_id();
$templates_id = $DB->insertId();
$query = "INSERT INTO `glpi_notificationtemplatetranslations` " .
"VALUES(NULL, $templates_id, '', '##lang.notimported.action## : ##notimported.entity##'," .
" '\r\n\n##lang.notimported.action## :&#160;##notimported.entity##\n\n" .
Expand Down Expand Up @@ -2874,7 +2874,7 @@ function plugin_ocsinventoryng_add_notifications_alerts() {
(`name`, `itemtype`)
VALUES ('Alert machines ocs', 'PluginOcsinventoryngOcsAlert');";
$DB->queryOrDie($query, $DB->error());
$templates_id = $DB->insert_id();
$templates_id = $DB->insertId();

$query = "INSERT INTO `glpi_notificationtemplatetranslations`
(`notificationtemplates_id`, `subject`, `content_text`, `content_html`)
Expand Down
2 changes: 1 addition & 1 deletion inc/ocslink.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -964,7 +964,7 @@ static function ocsLink($link_params) {
$result = $DB->query($query);

if ($result) {
return ($DB->insert_id());
return ($DB->insertId());
}

return false;
Expand Down
2 changes: 1 addition & 1 deletion inc/snmpocslink.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -2807,7 +2807,7 @@ static function ocsSnmpLink($ocsid, $plugin_ocsinventoryng_ocsservers_id, $items
$result = $DB->query($query);

if ($result) {
return ($DB->insert_id());
return ($DB->insertId());
}

return false;
Expand Down

0 comments on commit fea0740

Please sign in to comment.