Fixed wrong value assign on compare with 0

This commit is contained in:
Max Kostikov 2018-11-10 11:56:34 +01:00
parent 4999547f87
commit c6e14a696e

View File

@ -637,7 +637,7 @@ function import_xchan_photo($photo,$xchan,$thing = false,$force = false) {
if(is_null($type)) if(is_null($type))
$photo_failure = true; $photo_failure = true;
} }
elseif($result['return_code'] = 304) { elseif($result['return_code'] === 304) {
$photo = z_root() . '/photo/' . $hash . '-4'; $photo = z_root() . '/photo/' . $hash . '-4';
$thumb = z_root() . '/photo/' . $hash . '-5'; $thumb = z_root() . '/photo/' . $hash . '-5';
$micro = z_root() . '/photo/' . $hash . '-6'; $micro = z_root() . '/photo/' . $hash . '-6';