sync
[Pman.Admin] / GroupRights.php
index 4e1c714..0dbd455 100644 (file)
@@ -12,7 +12,7 @@ class Pman_Admin_GroupRights extends Pman
         parent::getAuth(); // load company!
         $au = $this->getAuthUser();
         if (!$au) {
-            $this->jerr("Not authenticated", array('authFailure' => true));
+            $this->jerror("LOGIN-NOAUTH", "Not authenticated", array('authFailure' => true));
         }
         
         if ($au->company()->comptype !='OWNER') {
@@ -87,7 +87,8 @@ class Pman_Admin_GroupRights extends Pman
             );
                 
         }
-        if (isset($_GET['_sort']) {}
+        
+        if (isset($_GET['_sort'])) {
             foreach ($ar as $key => $row) {
                 $shortname[$key]  = $row['shortname'];
                 $descript[$key] = $row['descript'];
@@ -95,6 +96,7 @@ class Pman_Admin_GroupRights extends Pman
 
             array_multisort($shortname, SORT_ASC, $descript, SORT_ASC, $ar);        
         }
+        
         $this->jdata($ar);