Fix error when Validator tries to load a directory

This commit is contained in:
Kijin Sung 2025-05-21 14:07:52 +09:00
parent 0f554c6d51
commit 94b4c1bd2b

View file

@ -105,7 +105,7 @@ class Validator
*/
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;
}