mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 17:21:39 +09:00
Fix undefined key when unload() is called with invalid args
This commit is contained in:
parent
6e06f72e3a
commit
4eebbf36b5
1 changed files with 4 additions and 0 deletions
|
|
@ -430,6 +430,10 @@ class FrontEndFileHandler extends Handler
|
||||||
public function unloadFile($fileName, $unused = '', $media = 'all')
|
public function unloadFile($fileName, $unused = '', $media = 'all')
|
||||||
{
|
{
|
||||||
$file = $this->getFileInfo($fileName, $unused, $media);
|
$file = $this->getFileInfo($fileName, $unused, $media);
|
||||||
|
if (!isset($file->key))
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if($file->fileExtension == 'css')
|
if($file->fileExtension == 'css')
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue