Set $log_id once for WPSC_Purchase_Log_Page class.
If no controller is specified to handle the Purchase Log page display, but an ID is provided, display the purchase old details by default rather than the list.
Merge pull request #1490 from benhuson/PR_WPSC_Purchase_Log_Page_2

Purchase Log page should display details by default if ID provided.