diff --git a/src/php/class-db.php b/src/php/class-db.php index 84ab399c..07c0fcaa 100644 --- a/src/php/class-db.php +++ b/src/php/class-db.php @@ -326,7 +326,7 @@ public function fetch_active_snippets( array $scopes ): array { foreach ( $ms_snippets as $snippet ) { $id = intval( $snippet['id'] ); - if ( ! $snippet['active'] && ! in_array( $id, $active_shared_ids, true ) ) { + if ( ( ! $snippet['active'] || '-1' === $snippet['active'] ) && ! in_array( $id, $active_shared_ids, true ) ) { continue; }