aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2018-11-10 11:56:34 +0100
committerMax Kostikov <max@kostikov.co>2018-11-10 11:56:34 +0100
commitc6e14a696e7942c26319b57f197826018b427002 (patch)
tree8f19d2a38f50658ce76d7e2daf731389af975d65
parent4999547f87a1e151108402cbcffc37dc6706f88b (diff)
downloadvolse-hubzilla-c6e14a696e7942c26319b57f197826018b427002.tar.gz
volse-hubzilla-c6e14a696e7942c26319b57f197826018b427002.tar.bz2
volse-hubzilla-c6e14a696e7942c26319b57f197826018b427002.zip
Fixed wrong value assign on compare with 0
-rw-r--r--include/photo/photo_driver.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/photo/photo_driver.php b/include/photo/photo_driver.php
index a4866bb60..cced7bf03 100644
--- a/include/photo/photo_driver.php
+++ b/include/photo/photo_driver.php
@@ -637,7 +637,7 @@ function import_xchan_photo($photo,$xchan,$thing = false,$force = false) {
if(is_null($type))
$photo_failure = true;
}
- elseif($result['return_code'] = 304) {
+ elseif($result['return_code'] === 304) {
$photo = z_root() . '/photo/' . $hash . '-4';
$thumb = z_root() . '/photo/' . $hash . '-5';
$micro = z_root() . '/photo/' . $hash . '-6';