Pastoid

The page you are looking at now is at this URL: http://pastoid.com/byg

This paste was last updated on December 3, 2009 at 11:03 pm.

Pasted Coderaw

if ( isset( $paramset['all:info'] ) || isset( $paramset['info'] ) ) {
 
	// merge the two possibile calls together
	$infos = array_merge( isset( $paramset['all:info'] ) ? $paramset['all:info'] : array(), isset( $paramset['info'] ) ? $paramset['info'] : array() );
 
	if ( is_array( $infos ) ) {
		$pi_count = 0;
		foreach($infos as $info_key => $info_value) {
			$pi_count++;
			$joins['info_' . $info_key] = " LEFT JOIN {postinfo} pi{$pi_count} ON {posts}.id = pi{$pi_count}.post_id AND pi{$pi_count}.name = ? AND pi{$pi_count}.value = ?";
			$join_params[] = $info_key;
			$join_params[] = $info_value;
			$where[] = "pi{$pi_count}.name <> ''";
 
			$select .= ", pi{$pi_count}.value AS info_{$info_key}_value";
		}
	}
 
}
 
 

Toggle wordwrap

Referring DomainHits
Unknown Referer 127
pastoid.com 7
drunkenmonkey.org 2
Is this paste spam?
<Hide