File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ public function __construct(
3232 public function open ($ filename )
3333 {
3434 $ pathInfo = pathinfo ($ filename );
35- if (!in_array ($ pathInfo ['extension ' ], $ this ->settings ->getExtraFiletypes ())) {
35+ if (!key_exists ( ' extension ' , $ pathInfo ) || ! in_array ($ pathInfo ['extension ' ], $ this ->settings ->getExtraFiletypes ())) {
3636 parent ::open ($ filename );
3737 }
3838 }
@@ -50,7 +50,7 @@ public function save($destination = null, $newName = null)
5050 {
5151 $ fileName = $ this ->_prepareDestination ($ destination , $ newName );
5252 $ pathInfo = pathinfo ($ fileName );
53- if (!in_array ($ pathInfo ['extension ' ], $ this ->settings ->getExtraFiletypes ())) {
53+ if (!key_exists ( ' extension ' , $ pathInfo ) || ! in_array ($ pathInfo ['extension ' ], $ this ->settings ->getExtraFiletypes ())) {
5454 parent ::save ($ destination , $ newName );
5555 }
5656 }
You can’t perform that action at this time.
0 commit comments