Fix null check in PHP
This commit is contained in:
parent
129c666a1a
commit
e1af7ad952
1 changed files with 3 additions and 3 deletions
|
|
@ -95,10 +95,10 @@ if ($stmt->fetch()) {
|
|||
}
|
||||
header('ETag: \'' . $thash . '\'');
|
||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s', $tlast / 1000) . ' GMT');
|
||||
if ($tnewimage) {
|
||||
echo $tnewimage;
|
||||
} else {
|
||||
if (is_null($tnewimage)) {
|
||||
echo $timage;
|
||||
} else {
|
||||
echo $tnewimage;
|
||||
}
|
||||
} else {
|
||||
header('Location: ../images/blank.png');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue