From 12b206f98b7adf28c85f52b47a0af3acef41884f Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 18 May 2006 06:09:35 +0000 Subject: [PATCH] Fixed admin toggle git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3398 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../personal/environment/class_environment.inc | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/plugins/personal/environment/class_environment.inc b/plugins/personal/environment/class_environment.inc index 8582fce96..84d18ae86 100644 --- a/plugins/personal/environment/class_environment.inc +++ b/plugins/personal/environment/class_environment.inc @@ -650,11 +650,16 @@ class environment extends plugin } if((isset($_POST['gotoPrinterEdit']))&&(isset($_POST['gotoPrinterSel']))&&(!empty($_POST['gotoPrinterSel']))){ - $printer = $_POST['gotoPrinterSel']; - if($this->gotoPrinter[$printer]['mode']=="user"){ - $this->gotoPrinter[$printer]['mode']="admin"; - }else{ - $this->gotoPrinter[$printer]['mode']="user"; + + + $printers = $_POST['gotoPrinterSel']; + + foreach($printers as $printer){ + if($this->gotoPrinter[$printer]['mode']=="user"){ + $this->gotoPrinter[$printer]['mode']="admin"; + }else{ + $this->gotoPrinter[$printer]['mode']="user"; + } } } -- 2.30.2