Fixes a runtime when a null memo would be attempted to be

displayed to an admin

Null descriptions will no longer `to_chat`

KA now no longer runtimes
This commit is contained in:
Crazylemon64
2016-08-31 00:11:01 -07:00
parent 52a9a69509
commit bc6da3082d
3 changed files with 6 additions and 5 deletions
+3 -3
View File
@@ -99,10 +99,10 @@
if(last_editor)
output += "<br><span class='memoedit'>Last edit by [last_editor] <A href='?_src_=holder;memoeditlist=[ckey]'>(Click here to see edit log)</A></span>"
output += "<br>[memotext]</span><br>"
if(!output && !silent)
if(output)
to_chat(src, output)
else if(!silent)
to_chat(src, "No memos found in database.")
return
to_chat(src, output)
if("Remove")
var/DBQuery/query_memodellist = dbcon.NewQuery("SELECT ckey FROM [format_table_name("memo")]")
if(!query_memodellist.Execute())