Browse files

$search_val flip update

  • Loading branch information...
1 parent 4e1a7ef commit 5e2a7fe25ab9574de9e91b6631b0467def1a1ac8 @sc0ttkclark sc0ttkclark committed Aug 1, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 classes/PodsAPI.php
View
5 classes/PodsAPI.php
@@ -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}'

0 comments on commit 5e2a7fe

Please sign in to comment.