improve get_temp_dir() implementation
This commit is contained in:
parent
fd4b30ac6f
commit
e53e7990c4
|
@ -271,6 +271,8 @@ if(!function_exists('get_temp_dir')) {
|
|||
unlink($temp);
|
||||
return dirname($temp);
|
||||
}
|
||||
if( $temp=sys_get_temp_dir()) return $temp;
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue