dbesc($item_id)
);
- if(count($r))
- $o .= str_replace("\n",'<br />',$r[0]['body']);
+ if(dbm::is_result($r))
+ if(is_ajax()) {
+ echo str_replace("\n",'<br />',$r[0]['body']);
+ killme();
+ } else {
+ $o .= str_replace("\n",'<br />',$r[0]['body']);
+ }
return $o;
}