Skip to content

Commit e20c97f

Browse files
committed
Merge pull request #110 from majiy/final
Avoid Undefined Index Notices
2 parents bb5f9ad + 8c151b3 commit e20c97f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

phpfastcache/3.0.0/phpfastcache.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public static function getAutoClass($config) {
133133
}
134134

135135
public static function getPath($skip_create_path = false, $config) {
136-
if ($config['path'] == '' )
136+
if ( !isset($config['path']) || $config['path'] == '' )
137137
{
138138

139139
// revision 618
@@ -195,7 +195,7 @@ public static function getPath($skip_create_path = false, $config) {
195195

196196

197197
public static function __setChmodAuto($config) {
198-
if($config['default_chmod'] == "" || is_null($config['default_chmod'])) {
198+
if(!isset($config['default_chmod']) || $config['default_chmod'] == "" || is_null($config['default_chmod'])) {
199199
return 0777;
200200
} else {
201201
return $config['default_chmod'];

0 commit comments

Comments
 (0)