Closed (fixed)
Project:
Book access
Version:
6.x-1.0-rc1
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
20 Jan 2009 at 22:00 UTC
Updated:
8 Feb 2009 at 23:00 UTC
The code should be optimized in some points.
A line like
$grant_update = $access['update'][$rid] > 0 ? TRUE : FALSE;
can be simply written
$grant_update = ($access['update'][$rid] > 0)
The code between parenthesis will value to TRUE if $access['update'][$rid] is greater than zero, FALSE otherwise.
Comments
Comment #1
harry slaughterfixed in tonight's dev snapshot