mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2024-12-29 13:15:44 +01:00
PHP Notice Fix (added check)
This commit is contained in:
parent
c585f0d712
commit
aa9d4a4dbf
1 changed files with 2 additions and 2 deletions
|
@ -290,7 +290,7 @@ if (!empty($_SERVER['QUERY_STRING'])) // Display an existing paste.
|
|||
|
||||
$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);
|
||||
|
@ -318,7 +318,7 @@ if (!empty($_SERVER['QUERY_STRING'])) // Display an existing paste.
|
|||
$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
|
||||
|
|
Loading…
Reference in a new issue