mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2024-03-22 13:10:41 +08:00
PHP Notice Fix (when burn after reading is selected) : Notice: Undefined property: stdClass::$expire_date in /ZeroBin/index.php on line 289
This commit is contained in:
parent
aa9d4a4dbf
commit
e71e7cfce6
|
@ -286,7 +286,7 @@ if (!empty($_SERVER['QUERY_STRING'])) // Display an existing paste.
|
||||||
if ($ERRORMESSAGE=='') // If no error, return the paste.
|
if ($ERRORMESSAGE=='') // If no error, return the paste.
|
||||||
{
|
{
|
||||||
// We kindly provide the remaining time before expiration (in seconds)
|
// We kindly provide the remaining time before expiration (in seconds)
|
||||||
if ($paste->meta->expire_date) $paste->meta->remaining_time = $paste->meta->expire_date - time();
|
if (property_exists($paste->meta, 'expire_date')) $paste->meta->remaining_time = $paste->meta->expire_date - time();
|
||||||
|
|
||||||
$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.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user