mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/11515] Change If...else statement struct
Modifications in if-else structure. PHPBB3-11515
This commit is contained in:
parent
9063556a57
commit
1ba32e1b7a
3 changed files with 9 additions and 3 deletions
|
@ -163,7 +163,9 @@ class config implements \ArrayAccess, \IteratorAggregate, \Countable
|
|||
if(isset($this->config[$key]) && $this->config[$key] == $new_value)
|
||||
{
|
||||
return true;
|
||||
} else {
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new \phpbb\exception\http_exception(500, 'Failure while aqcuiring locks.');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -116,7 +116,9 @@ class db
|
|||
{
|
||||
return true;
|
||||
}
|
||||
} else {
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
return $this->locked;
|
||||
}
|
||||
|
|
|
@ -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.');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue