diff options
author | Andreas Fischer <bantu@phpbb.com> | 2012-03-25 23:58:56 +0200 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2012-03-25 23:58:56 +0200 |
commit | 0257cd1653a37638477534c0cd78be20f0d58e2d (patch) | |
tree | 4de1f89ac0719318bb796031abd59caae5a28fb7 /phpBB/includes/extension | |
parent | 0ce899cb8730008b470ef37eac3dcd2965fd2314 (diff) | |
parent | 18c541dfee6ec7db0e04c939bc103cefe9dab9d7 (diff) | |
download | forums-0257cd1653a37638477534c0cd78be20f0d58e2d.tar forums-0257cd1653a37638477534c0cd78be20f0d58e2d.tar.gz forums-0257cd1653a37638477534c0cd78be20f0d58e2d.tar.bz2 forums-0257cd1653a37638477534c0cd78be20f0d58e2d.tar.xz forums-0257cd1653a37638477534c0cd78be20f0d58e2d.zip |
Merge remote-tracking branch 'dhruvgoel92/ticket/10703' into develop
* dhruvgoel92/ticket/10703:
[ticket/10703] Added a condition to check if ext directory exists
Diffstat (limited to 'phpBB/includes/extension')
-rw-r--r-- | phpBB/includes/extension/manager.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/phpBB/includes/extension/manager.php b/phpBB/includes/extension/manager.php index c38f0df32e..dac0e5f947 100644 --- a/phpBB/includes/extension/manager.php +++ b/phpBB/includes/extension/manager.php @@ -352,6 +352,10 @@ class phpbb_extension_manager public function all_available() { $available = array(); + if (!is_dir($this->phpbb_root_path . 'ext/')) + { + return $available; + } $iterator = new RecursiveIteratorIterator( new RecursiveDirectoryIterator($this->phpbb_root_path . 'ext/'), |