summaryrefslogtreecommitdiff
path: root/plugins/enigma/lib/enigma_ui.php
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-05-07 13:51:23 +0200
committerAleksander Machniak <alec@alec.pl>2013-05-07 13:51:23 +0200
commit2193f6a1301edcb62de6f0cf338acccdbf5ec2f1 (patch)
tree61ccde7d0088c2a5c7274ccdaa2e2fcd91104fed /plugins/enigma/lib/enigma_ui.php
parentef1d6525c2333794d954ccce33de1bcd533f85c8 (diff)
Avoid unused local variables
Diffstat (limited to 'plugins/enigma/lib/enigma_ui.php')
-rw-r--r--plugins/enigma/lib/enigma_ui.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/enigma/lib/enigma_ui.php b/plugins/enigma/lib/enigma_ui.php
index 47366b7e8..adb619d0c 100644
--- a/plugins/enigma/lib/enigma_ui.php
+++ b/plugins/enigma/lib/enigma_ui.php
@@ -176,8 +176,7 @@ class enigma_ui
$search = rcube_utils::get_input_value('_q', rcube_utils::INPUT_GPC);
// define list of cols to be displayed
- $a_show_cols = array('name');
- $result = array();
+// $a_show_cols = array('name');
// Get the list
$list = $this->enigma->engine->list_keys($search);
@@ -200,7 +199,7 @@ class enigma_ui
$size = count($list);
// Add rows
- foreach($list as $idx => $key) {
+ foreach ($list as $key) {
$this->rc->output->command('enigma_add_list_row',
array('name' => rcube::Q($key->name), 'id' => $key->id));
}