Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
PHP Notice Fix (added check)
  • Loading branch information
erwanlr committed Apr 22, 2012
commit aa9d4a4dbf1bb605cb50b29eb216a9917f647eb4
4 changes: 2 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ function deletePaste($pasteid)

$messages = array($paste); // The paste itself is the first in the list of encrypted messages.
// If it's a discussion, get all comments.
if (property_exists($paste->meta, 'opendiscussion'))
if (property_exists($paste->meta, 'opendiscussion') && $paste->meta->opendiscussion)
{
$comments=array();
$datadir = dataid2discussionpath($dataid);
Expand Down Expand Up @@ -318,7 +318,7 @@ function deletePaste($pasteid)
$CIPHERDATA = json_encode($messages);

// If the paste was meant to be read only once, delete it.
if (property_exists($paste->meta, 'burnafterreading')) deletePaste($dataid);
if (property_exists($paste->meta, 'burnafterreading') && $paste->meta->burnafterreading) deletePaste($dataid);
}
}
else
Expand Down