/**
* 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) {