Ticket #3626 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

load_template() notice

Reported by: idle Assigned to: anonymous
Priority: low Milestone: 2.0.8
Component: General Version: 2.0.7
Severity: trivial Keywords: has-patch
Cc:

Description

In function load_template() a PHP notice is generated because of an empty array under some circumstances (unknown to me at this point). The line is:

	extract($wp_query->query_vars, EXTR_SKIP);

Fix: Make sure that the passed variable is an array.

	if ( is_array($wp_query->query_vars) ) {
		extract($wp_query->query_vars, EXTR_SKIP);
	}

Change History

01/21/07 05:26:26 changed by Viper007Bond

  • keywords changed from load_template,notice,extract to has-patch.

01/21/07 20:02:47 changed by ryan

  • status changed from new to closed.
  • resolution set to fixed.

(In [4777]) Make sure is_array before extract. Props idle. fixes #3626

01/21/07 20:03:05 changed by ryan

(In [4778]) Make sure is_array before extract. Props idle. fixes #3626