switching to full JSON API without POST array use, ensure all JSON operations are done with error detection
This commit is contained in:
@@ -98,7 +98,7 @@ class Paste extends AbstractModel
|
||||
if (
|
||||
$this->_store->create(
|
||||
$this->getId(),
|
||||
json_decode(json_encode($this->_data), true)
|
||||
$this->_data
|
||||
) === false
|
||||
) {
|
||||
throw new Exception('Error saving paste. Sorry.', 76);
|
||||
|
||||
Reference in New Issue
Block a user