From: hickert Date: Thu, 18 May 2006 06:09:35 +0000 (+0000) Subject: Fixed admin toggle X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=12b206f98b7adf28c85f52b47a0af3acef41884f;p=gosa.git Fixed admin toggle git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3398 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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"; + } } }