Skip to content

Commit

Permalink
unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Apr 15, 2014
1 parent f027799 commit 7d51562
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 7 deletions.
2 changes: 0 additions & 2 deletions imp/lib/Maillog/Message.php
Expand Up @@ -72,8 +72,6 @@ public function __toString()
*/
public function __get($name)
{
global $injector;

switch ($name) {
case 'indices':
return $this->_indices;
Expand Down
2 changes: 1 addition & 1 deletion imp/lib/Maillog/Storage/History.php
Expand Up @@ -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':
Expand Down
2 changes: 0 additions & 2 deletions imp/lib/Maillog/Storage/Mdnsent.php
Expand Up @@ -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();
}
Expand Down
2 changes: 1 addition & 1 deletion imp/lib/Message/Ui.php
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion imp/lib/Prefs/Special/Sourceselect.php
Expand Up @@ -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;
Expand Down

0 comments on commit 7d51562

Please sign in to comment.