diff options
author | xzilla | 2005-08-11 12:43:06 +0000 |
---|---|---|
committer | xzilla | 2005-08-11 12:43:06 +0000 |
commit | 0f3ecd7cffed575ecb75549d437b33b396beb650 (patch) | |
tree | 54e3c7fb3b4ed98ae646e6f08d17fc033d40b0b0 | |
parent | b1ed90df5ed00b1b2f2cd452d24fcbf77adee575 (diff) |
Revert sizeof change for stable branch since we hide privs on functions anyway.
-rw-r--r-- | privileges.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/privileges.php b/privileges.php index e0de967a..4db391e2 100644 --- a/privileges.php +++ b/privileges.php @@ -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 @@ -168,7 +168,8 @@ // 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) { |