mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2026-01-23 02:35:23 +00:00
Merge branch 'master' into drop-legacy-zerobin-support
This commit is contained in:
commit
410cc909ce
5 changed files with 23 additions and 0 deletions
|
|
@ -160,6 +160,7 @@ class Database extends AbstractData
|
|||
)
|
||||
);
|
||||
} catch (Exception $e) {
|
||||
error_log('Error while attempting to insert a paste into the database: ' . $e->getMessage());
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
@ -253,6 +254,7 @@ class Database extends AbstractData
|
|||
try {
|
||||
$data = Json::encode($comment);
|
||||
} catch (Exception $e) {
|
||||
error_log('Error while attempting to insert a comment into the database: ' . $e->getMessage());
|
||||
return false;
|
||||
}
|
||||
$meta = $comment['meta'];
|
||||
|
|
@ -273,6 +275,7 @@ class Database extends AbstractData
|
|||
)
|
||||
);
|
||||
} catch (Exception $e) {
|
||||
error_log('Error while attempting to insert a comment into the database: ' . $e->getMessage());
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -456,6 +456,7 @@ class Filesystem extends AbstractData
|
|||
self::PROTECTION_LINE . PHP_EOL . Json::encode($data)
|
||||
);
|
||||
} catch (Exception $e) {
|
||||
error_log('Error while trying to store data to the filesystem at path "' . $filename . '": ' . $e->getMessage());
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue