Skip to content

Instantly share code, notes, and snippets.

@objectivehtml
Created May 2, 2013 20:38
Show Gist options
  • Select an option

  • Save objectivehtml/5505235 to your computer and use it in GitHub Desktop.

Select an option

Save objectivehtml/5505235 to your computer and use it in GitHub Desktop.
// Check for a no_results prefix to avoid no_results parse conflicts
if($no_results_prefix = $this->param('no_results_prefix'))
{
if(preg_match('/\\'.LD.'if '.$no_results_prefix.'no_results\\'.RD.'.*\\'.LD.'\\/if\\'.RD.'/us', $this->EE->TMPL->tagdata, $matches))
{
$this->EE->TMPL->no_results = $this->EE->TMPL->parse_variables_row($matches[0], array(
$no_results_prefix.'no_results' => 1
));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment