Commits

dchill42 committed 3346d15

Quick fixes to Loader.php and Driver.php mods

Comments (0)

Files changed (2)

system/core/Loader.php

 		}
 
 		// Load drivers
-		foreach ($autoload['drivers'] as $item)
+		if (isset($autoload['drivers']))
 		{
-			$this->driver($item);
-		}
+			foreach ($autoload['drivers'] as $item)
+			{
+				$this->driver($item);
+			}
+        }
 
 		// Autoload models
 		if (isset($autoload['model']))

system/libraries/Driver.php

 						if (file_exists($filepath))
 						{
 							include_once $filepath;
-							break;
+							break 2;
 						}
 					}
 				}