I believe this is a bug. Even if getPrivileges returns -1, if you do a sizeof on...
authorxzilla <xzilla>
Wed, 10 Aug 2005 18:34:06 +0000 (18:34 +0000)
committerxzilla <xzilla>
Wed, 10 Aug 2005 18:34:06 +0000 (18:34 +0000)
privileges.php

index 78295bb99b726453c4680331a882aae31f9a119c..e0de967ac744e144a0d144d893f46e85760d7ee1 100644 (file)
@@ -3,7 +3,7 @@
        /**
         * Manage privileges in a database
         *
-        * $Id: privileges.php,v 1.34.2.1 2004/12/08 13:50:40 chriskl Exp $
+        * $Id: privileges.php,v 1.34.2.2 2005/08/10 18:34:06 xzilla Exp $
         */
 
        // Include application functions
                
                // Get the privileges on the object, given its type
                $privileges = $data->getPrivileges($object, $_REQUEST['subject']);
-
-               if (sizeof($privileges) > 0) {
+               if ($privileges > 0) {
                        echo "<table>\n";
                        echo "<tr><th class=\"data\">{$lang['strtype']}</th><th class=\"data\">{$lang['struser']}/{$lang['strgroup']}</th>";
                        foreach ($data->privlist[$_REQUEST['subject']] as $v2) {