mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-21 23:55:35 +08:00
Fix DataProvider warning bug
This commit is contained in:
@@ -63,7 +63,9 @@ class DataProvider
|
||||
public static function getDataFolder(string $second = '')
|
||||
{
|
||||
if ($second !== '') {
|
||||
@mkdir(ZM_DATA . $second);
|
||||
if (!is_dir(ZM_DATA . $second)) {
|
||||
@mkdir(ZM_DATA . $second);
|
||||
}
|
||||
if (!is_dir(ZM_DATA . $second)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user