From 7d515627b949e047bc2ccb9298c10fba4cb450fa Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Mon, 14 Apr 2014 18:01:54 -0600 Subject: [PATCH] unused variables --- imp/lib/Maillog/Message.php | 2 -- imp/lib/Maillog/Storage/History.php | 2 +- imp/lib/Maillog/Storage/Mdnsent.php | 2 -- imp/lib/Message/Ui.php | 2 +- imp/lib/Prefs/Special/Sourceselect.php | 2 +- 5 files changed, 3 insertions(+), 7 deletions(-) diff --git a/imp/lib/Maillog/Message.php b/imp/lib/Maillog/Message.php index c9e5f8c1d71..53dbd2b2b17 100644 --- a/imp/lib/Maillog/Message.php +++ b/imp/lib/Maillog/Message.php @@ -72,8 +72,6 @@ public function __toString() */ public function __get($name) { - global $injector; - switch ($name) { case 'indices': return $this->_indices; diff --git a/imp/lib/Maillog/Storage/History.php b/imp/lib/Maillog/Storage/History.php index 85d7917c360..662759683c6 100644 --- a/imp/lib/Maillog/Storage/History.php +++ b/imp/lib/Maillog/Storage/History.php @@ -100,7 +100,7 @@ public function getLog(IMP_Maillog_Message $msg, array $filter = array()) return $out; } - foreach ($history as $key => $val) { + foreach ($history as $val) { if (!in_array($val['action'], $filter)) { switch ($val['action']) { case 'forward': diff --git a/imp/lib/Maillog/Storage/Mdnsent.php b/imp/lib/Maillog/Storage/Mdnsent.php index 12f27975c93..c6a7b8be1cb 100644 --- a/imp/lib/Maillog/Storage/Mdnsent.php +++ b/imp/lib/Maillog/Storage/Mdnsent.php @@ -47,8 +47,6 @@ public function saveLog( */ public function getLog(IMP_Maillog_Message $msg, array $filter = array()) { - global $registry; - if (!$msg->indices || in_array('mdn', $filter)) { return array(); } diff --git a/imp/lib/Message/Ui.php b/imp/lib/Message/Ui.php index 4d8819d39ca..4fccdc662d2 100644 --- a/imp/lib/Message/Ui.php +++ b/imp/lib/Message/Ui.php @@ -83,7 +83,7 @@ public function MDNCheck( $maillog = $injector->getInstance('IMP_Maillog'); $pref_val = $prefs->getValue('send_mdn'); - list($mbox, $uid) = $indices->getSingle(); + list($mbox, ) = $indices->getSingle(); if (!$pref_val || $mbox->readonly) { return false; diff --git a/imp/lib/Prefs/Special/Sourceselect.php b/imp/lib/Prefs/Special/Sourceselect.php index 66a9937af5e..17b770f5c71 100644 --- a/imp/lib/Prefs/Special/Sourceselect.php +++ b/imp/lib/Prefs/Special/Sourceselect.php @@ -43,7 +43,7 @@ public function display(Horde_Core_Prefs_Ui $ui) */ public function update(Horde_Core_Prefs_Ui $ui) { - global $prefs, $session; + global $prefs; $data = Horde_Core_Prefs_Ui_Widgets::addressbooksUpdate($ui); $updated = false;