mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-09-27 19:51:03 -04:00
syntax fix, changelog
This commit is contained in:
parent
9a61e8fd48
commit
bde5802a3a
7 changed files with 17 additions and 16 deletions
|
@ -353,7 +353,7 @@ class GoogleCloudStorage extends AbstractData
|
|||
public function getAllPastes()
|
||||
{
|
||||
$pastes = array();
|
||||
$prefix = $this->_prefix;
|
||||
$prefix = $this->_prefix;
|
||||
if ($prefix != '') {
|
||||
$prefix .= '/';
|
||||
}
|
||||
|
@ -361,7 +361,7 @@ class GoogleCloudStorage extends AbstractData
|
|||
try {
|
||||
foreach ($this->_bucket->objects(array('prefix' => $prefix)) as $object) {
|
||||
$candidate = substr($object->name(), strlen($prefix));
|
||||
if (strpos($candidate, "/") === false) {
|
||||
if (strpos($candidate, '/') === false) {
|
||||
$pastes[] = $candidate;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue