Revert sizeof change for stable branch since we hide privs on functions anyway.
authorxzilla <xzilla>
Thu, 11 Aug 2005 12:43:06 +0000 (12:43 +0000)
committerxzilla <xzilla>
Thu, 11 Aug 2005 12:43:06 +0000 (12:43 +0000)
privileges.php

index e0de967ac744e144a0d144d893f46e85760d7ee1..4db391e282fa68976696ad234225e19b4a11555a 100644 (file)
@@ -3,7 +3,7 @@
        /**
         * Manage privileges in a database
         *
-        * $Id: privileges.php,v 1.34.2.2 2005/08/10 18:34:06 xzilla Exp $
+        * $Id: privileges.php,v 1.34.2.3 2005/08/11 12:43:06 xzilla Exp $
         */
 
        // Include application functions
                
                // Get the privileges on the object, given its type
                $privileges = $data->getPrivileges($object, $_REQUEST['subject']);
-               if ($privileges > 0) {
+
+               if (sizeof($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) {