mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[ticket/11515] Change If...else statement struct
Modifications in if-else structure. PHPBB3-11515
This commit is contained in:
@@ -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.');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user