Skip to content

Instantly share code, notes, and snippets.

@tsnoad
Created July 26, 2010 05:21
Show Gist options
  • Save tsnoad/490210 to your computer and use it in GitHub Desktop.
Save tsnoad/490210 to your computer and use it in GitHub Desktop.
<?
//tabular.php line 2856
case "editsquidconstraint":
$output->title = "Edit Constraint";
$output->title_desc = "";
$output->data .= Tabular_view::view_editconstraint($blah);
break;
//theme.php line 139
if (isset($data->title)) {
$main .= "<h2>".ucwords($data->title)."</h2>";
if (isset($data->title_desc)) {
$main .= "<p class='h2attach'>".$data->title_desc."</p>";
}
}
//setting and getting $output->title_desc like this creates problems. why not use empty() instead of isset()?
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment