Skip to content

Commit e579155

Browse files
committed
Repair function/pastebin and use variable correctly
1 parent fe5c8a1 commit e579155

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

controller/main.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ private function display_pb()
273273

274274
$filedata = $this->request->file('fileupload');
275275

276-
if (!empty($this->request->file('fileupload')) && $filedata['name'] != 'none' && trim($filedata['name']))
276+
if (!empty($filedata) && $filedata['name'] != 'none' && trim($filedata['name']))
277277
{
278278
$upload = $this->factory->get('files.upload');
279279

functions/pastebin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,6 @@ function offsetSet($offset, $value)
253253

254254
function offsetUnset($offset)
255255
{
256-
256+
// still needed, even if empty
257257
}
258258
}

0 commit comments

Comments
 (0)