if ( defined $settings && ! $settings->{hidecode} and $codtype{ $node->{nodetype} } or $node->{code} || containscode( $node->{doctext} ) ) { # ... #### where EXISTS (select 1 from users where users.user_id = acct.user_id or (acct_id is null and user_id = 0)