mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +09:00
Fix error when Validator tries to load a directory
This commit is contained in:
parent
0f554c6d51
commit
94b4c1bd2b
1 changed files with 1 additions and 1 deletions
|
|
@ -105,7 +105,7 @@ class Validator
|
||||||
*/
|
*/
|
||||||
function load($xml_path)
|
function load($xml_path)
|
||||||
{
|
{
|
||||||
if (!file_exists($xml_path) || !is_readable($xml_path))
|
if (!file_exists($xml_path) || !is_file($xml_path) || !is_readable($xml_path))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue