diff --git a/classes/fields/pick.php b/classes/fields/pick.php
index <HASH>..<HASH> 100644
--- a/classes/fields/pick.php
+++ b/classes/fields/pick.php
@@ -221,10 +221,12 @@ class PodsField_Pick extends PodsField {
                 'groupby' => pods_var( 'pick_groupby', $options, null, null, true )

             ) );

 

-            foreach ( $results as $result ) {

-                $result = get_object_vars( $result );

+            if ( !empty( $data->table ) ) {

+                foreach ( $results as $result ) {

+                    $result = get_object_vars( $result );

 

-                $options[ 'data' ][ $result[ $data->field_id ] ] = $result[ $data->field_index ];

+                    $options[ 'data' ][ $result[ $data->field_id ] ] = $result[ $data->field_index ];

+                }

             }

         }
Quick patch to avoid errors if table is empty