On Wed, Apr 1, 2009 at 2:03 PM, Christopher Hyde <[email protected]> wrote:
> +# LibraryThingForLibraries
> +if( C4::Context->preference('LibraryThingForLibrariesEnabled') )
> +{
> + $template->param(LibraryThingForLibrariesID =>
> +C4::Context->preference('LibraryThingForLibrariesID') );
> +}
> +if( C4::Context->preference('LibraryThingForLibrariesEnabled') )
> +{
> + $template->param(LibraryThingForLibrariesTabbedView =>
> +C4::Context->preference('LibraryThingForLibrariesTabbedView') );
> +}
>
Why repeat the same conditional twice? Just put both assignments in the
first one.
--Joe
_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha.org/mailman/listinfo/koha-patches