From: Andrey Kutejko Date: Thu, 20 Jun 2013 18:59:58 +0000 (+0300) Subject: fix app model detection X-Git-Tag: 0.5~225 X-Git-Url: https://git.andy128k.dev/?a=commitdiff_plain;h=ad97e441afb75ed33faa33ffa88b85419b08afbd;p=ipf.git fix app model detection --- diff --git a/ipf/application.php b/ipf/application.php index c0a44ca..f07c273 100644 --- a/ipf/application.php +++ b/ipf/application.php @@ -26,7 +26,7 @@ abstract class IPF_Application $it = new DirectoryIterator($this->path.DIRECTORY_SEPARATOR.'models'); foreach ($it as $file) { $e = explode('.', $file->getFileName(), 2); - if ($e[1] === 'php') { + if (count($e) == 2 && $e[1] === 'php') { $this->models[] = $e[0]; } }