aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/lock/flock.php
diff options
context:
space:
mode:
authorVishal Pandey <vishpandey2014@gmail.com>2017-03-14 02:16:18 +0530
committerMarc Alexander <admin@m-a-styles.de>2019-05-08 21:48:59 +0200
commit530e5bca87758342bfe0f212191ace8a709bdb75 (patch)
tree93689613d6f00ae41735f1c1bc1f60def707400f /phpBB/phpbb/lock/flock.php
parent26acd8a5e43f6fc697728f04f4966b26bbd05230 (diff)
downloadforums-530e5bca87758342bfe0f212191ace8a709bdb75.tar
forums-530e5bca87758342bfe0f212191ace8a709bdb75.tar.gz
forums-530e5bca87758342bfe0f212191ace8a709bdb75.tar.bz2
forums-530e5bca87758342bfe0f212191ace8a709bdb75.tar.xz
forums-530e5bca87758342bfe0f212191ace8a709bdb75.zip
[ticket/11515] Change If...else statement struct
Modifications in if-else structure. PHPBB3-11515
Diffstat (limited to 'phpBB/phpbb/lock/flock.php')
-rw-r--r--phpBB/phpbb/lock/flock.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/phpBB/phpbb/lock/flock.php b/phpBB/phpbb/lock/flock.php
index 89ff7cbe48..b496ed845e 100644
--- a/phpBB/phpbb/lock/flock.php
+++ b/phpBB/phpbb/lock/flock.php
@@ -104,7 +104,9 @@ class flock
if (@flock($this->lock_fp, LOCK_EX))
{
return (bool) $this->lock_fp;
- } else {
+ }
+ else
+ {
throw new \phpbb\exception\http_exception(500, 'Failure while aqcuiring locks.');
}
}