Index: trunk/phase3/includes/AutoLoader.php |
— | — | @@ -213,7 +213,11 @@ |
214 | 214 | 'memcached' => 'memcached-client.php', |
215 | 215 | 'UtfNormal' => 'normal/UtfNormal.php' |
216 | 216 | ); |
217 | | - require($classes[$class_name]); |
| 217 | + if (array_key_exists($class_name, $classes)) { |
| 218 | + require($classes[$class_name]); |
| 219 | + } else { |
| 220 | + return false; |
| 221 | + } |
218 | 222 | } |
219 | 223 | |
220 | 224 | ?> |
\ No newline at end of file |