Permalink
Browse files

Fix notice

  • Loading branch information...
1 parent fc527a9 commit edd42f1221f4037e5f19fdd732fed8cbf52d63ae @joehoyle joehoyle committed Apr 16, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 hm-core.rewrite.php
View
@@ -193,7 +193,7 @@ function hm_load_custom_templates( $template ) {
foreach( wp_parse_args( $hm_current_rewrite_rule[3]['post_query_properties'] ) as $property => $value )
$wp_query->$property = $value;
- if ( $hm_current_rewrite_rule[3]['query_callback'] && is_callable( $hm_current_rewrite_rule[3]['query_callback'] ) )
+ if ( ! empty( $hm_current_rewrite_rule[3]['query_callback'] ) && is_callable( $hm_current_rewrite_rule[3]['query_callback'] ) )
call_user_func_array( $hm_current_rewrite_rule[3]['query_callback'], array( $wp_query ) );
}

0 comments on commit edd42f1

Please sign in to comment.