From 57839377f81f0830e81e663a20298c9cf544858e Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Wed, 7 Feb 2018 22:36:26 +0100 Subject: [PATCH] remove duplicate code --- op/op.Ajax.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/op/op.Ajax.php b/op/op.Ajax.php index 106e31fdd..03f7a2b83 100644 --- a/op/op.Ajax.php +++ b/op/op.Ajax.php @@ -78,14 +78,6 @@ if (isset($_COOKIE["mydms_session"])) { $notifier->addService(new SeedDMS_EmailNotify($dms, $settings->_smtpSendFrom, $settings->_smtpServer, $settings->_smtpPort, $settings->_smtpUser, $settings->_smtpPassword)); } - if(isset($GLOBALS['SEEDDMS_HOOKS']['notification'])) { - foreach($GLOBALS['SEEDDMS_HOOKS']['notification'] as $notificationObj) { - if(method_exists($notificationObj, 'postAddService')) { - $notificationObj->postAddService($notifier); - } - } - } - if(isset($GLOBALS['SEEDDMS_HOOKS']['notification'])) { foreach($GLOBALS['SEEDDMS_HOOKS']['notification'] as $notificationObj) { if(method_exists($notificationObj, 'postAddService')) {