projects
/
GitHub
/
WoltLab
/
WCF.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add explicit `return null;` statements
[GitHub/WoltLab/WCF.git]
/
wcfsetup
/
install
/
files
/
lib
/
data
/
box
/
Box.class.php
diff --git
a/wcfsetup/install/files/lib/data/box/Box.class.php
b/wcfsetup/install/files/lib/data/box/Box.class.php
index 25877a1909455f07ae021ba0be693cfd054789c4..2e00f9522c4150a2bf6a34d87b009c081d618432 100644
(file)
--- a/
wcfsetup/install/files/lib/data/box/Box.class.php
+++ b/
wcfsetup/install/files/lib/data/box/Box.class.php
@@
-386,7
+386,7
@@
class Box extends DatabaseObject
public function getImage()
{
if ($this->boxType === 'menu') {
- return;
+ return
null
;
}
if ($this->image === null) {
@@
-405,7
+405,7
@@
class Box extends DatabaseObject
}
if ($this->image === null || !$this->image->isAccessible()) {
- return;
+ return
null
;
}
return $this->image;