mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2024-10-01 01:26:10 -04:00
PHP Notice Bug fix (Notice: Undefined property: stdClass::$burafterreading & $opendiscussion)
This commit is contained in:
parent
50272a678f
commit
c585f0d712
@ -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.
|
$messages = array($paste); // The paste itself is the first in the list of encrypted messages.
|
||||||
// If it's a discussion, get all comments.
|
// If it's a discussion, get all comments.
|
||||||
if ($paste->meta->opendiscussion)
|
if (property_exists($paste->meta, 'opendiscussion'))
|
||||||
{
|
{
|
||||||
$comments=array();
|
$comments=array();
|
||||||
$datadir = dataid2discussionpath($dataid);
|
$datadir = dataid2discussionpath($dataid);
|
||||||
@ -318,7 +318,7 @@ if (!empty($_SERVER['QUERY_STRING'])) // Display an existing paste.
|
|||||||
$CIPHERDATA = json_encode($messages);
|
$CIPHERDATA = json_encode($messages);
|
||||||
|
|
||||||
// If the paste was meant to be read only once, delete it.
|
// If the paste was meant to be read only once, delete it.
|
||||||
if ($paste->meta->burnafterreading) deletePaste($dataid);
|
if (property_exists($paste->meta, 'burnafterreading')) deletePaste($dataid);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user