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