Closed (fixed)
Project:
Decounter
Version:
6.x-1.0
Component:
Code
Priority:
Normal
Category:
Task
Reporter:
Created:
16 Apr 2009 at 06:09 UTC
Updated:
8 May 2009 at 14:50 UTC
Jump to comment: Most recent
The code needs to be optimized; i.e., decounter_exit() uses two variables when it needs only one ($admin, and $exclude_admin). It's enough to initialize the second variable with $exclude_admin = (integer) variable_get(...).
Comments
Comment #1
avpadernoThe code I am talking of is the following
which could be simply write
This would also avoid the access to a not defined variable that happens in the case
variable_get('decounter_exclude_admin', '1')returns a value different from'1'.Comment #2
avpadernoThen, also the line
can be simplified in
Comment #3
Anonymous (not verified) commentedEverybody has it's own style of programming.
Comment #4
Anonymous (not verified) commentedComment #5
Anonymous (not verified) commented