raphael Wrote:Don't you think this would be better?:
Code:
< $als_fwd = ($als_fwd == 'no') ? tr('disabled') : tr('enabled');
---
> $als_fwd = ($als_fwd == 'no') ? tr('disabled') : $als_fwd;
Yes you could only replace the 'no' by 'disabled', this is okay for me.
raphael Wrote:resulting in this change to be useless:
Code:
< return array(tr('Enable'), "enable_als_fwd.php?id=$als_id");
---
> // return array(tr('Enable'), "enable_als_fwd.php?id=$als_id");
> return array(tr('None'), "enable_als_fwd.php?id=$als_id");
In this case, I think this is better to change like this (to use the same logic) :
Code:
< return array(tr('Enable'), "enable_als_fwd.php?id=$als_id");
---
> return array(tr('Disabled'), "enable_als_fwd.php?id=$als_id");