Skip to content
Snippets Groups Projects
Commit eb48fb68 authored by Johan Schön's avatar Johan Schön
Browse files

Added catch.

Rev: lib/modules/Protocols.pmod/LysKOM.pmod/Threads.pike:1.3
parent 4eda31fb
Branches
Tags
No related merge requests found
...@@ -19,10 +19,15 @@ class Thread ...@@ -19,10 +19,15 @@ class Thread
array(mapping) flatten(int depth) array(mapping) flatten(int depth)
{ {
// werror("%d, ",text->no); string author_name;
catch {
author_name=text->author->name;
};
if(!author_name)
author_name="Deleted person";
return ({ ([ "no": (string)text->no, return ({ ([ "no": (string)text->no,
"author_no": (string)text->author->name, "author_no": (string)text->author->no,
"author_name":text->author->name, "author_name":author_name,
"subject": text->subject, "subject": text->subject,
"unread": (unread?"un":""), "unread": (unread?"un":""),
"depth": (string)depth ]), "depth": (string)depth ]),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment