]> git.andy128k.dev Git - ipf.git/commitdiff
fix app model detection
authorAndrey Kutejko <andy128k@gmail.com>
Thu, 20 Jun 2013 18:59:58 +0000 (21:59 +0300)
committerAndrey Kutejko <andy128k@gmail.com>
Thu, 20 Jun 2013 18:59:58 +0000 (21:59 +0300)
ipf/application.php

index c0a44ca491f345918117cb92f81d7c960a2e80f7..f07c273907172c5808990a90e00d074cb50113ea 100644 (file)
@@ -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];
                     }
                 }