| @@ -58,11 +58,15 @@ | ||
| 58 | 58 | |
| 59 | 59 | $automations = AutomatorWP()->db->automations; |
| 60 | 60 | $automations_meta = AutomatorWP()->db->automations_meta; |
| 61 | 61 | |
| 62 | + // Bail if tables are not yet created | |
| 63 | + if( ! automatorwp_database_table_exists( $automations ) ) return; | |
| 64 | + | |
| 62 | 65 | $loop_types = automatorwp_get_automation_loop_types(); |
| 63 | 66 | |
| 64 | 67 | $patterns = implode( ', ', array_fill( 0, count( $loop_types ), '%s' ) ); |
| 68 | + | |
| 65 | 69 | |
| 66 | 70 | // Get scheduled automations |
| 67 | 71 | $results = $wpdb->get_results( $wpdb->prepare( " |
| 68 | 72 | SELECT a.id |