Skip to content

Commit

Permalink
$search_val flip update
Browse files Browse the repository at this point in the history
  • Loading branch information
sc0ttkclark committed Aug 1, 2012
1 parent 4e1a7ef commit 5e2a7fe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion classes/PodsAPI.php
Expand Up @@ -915,7 +915,10 @@ public function save_pod ( $params ) {

if ( !empty( $lookup_option ) && !empty( $lookup_built_in ) && isset( $built_in[ $lookup_built_in ] ) ) {
foreach ( $built_in[ $lookup_built_in ] as $built_in_object => $val ) {
$search_val = 1 ^ $val;
$search_val = 1;

if ( 1 == $val )
$search_val = 0;

$query = "SELECT p.ID FROM {$wpdb->posts} AS p
LEFT JOIN {$wpdb->postmeta} AS pm ON pm.post_id = p.ID AND pm.meta_key = '{$lookup_option}'
Expand Down

0 comments on commit 5e2a7fe

Please sign in to comment.