From: Edward Chernenko Date: Mon, 25 Jun 2018 22:45:13 +0000 (+0300) Subject: Fix PHP7 warning "non well formed numeric value encountered" X-Git-Tag: 1.31.1~24 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmembres/Subpage_test/1/2/%24h3?a=commitdiff_plain;h=d8a7ad14407ec47a0d8197f1ac77b5db3c4a9104;p=lhc%2Fweb%2Fwiklou.git Fix PHP7 warning "non well formed numeric value encountered" PHP 7.1 warns when non-numeric string is implicitly cast to integer. Change-Id: Ia46ea793e9495548c7d421b3372f6deaeda163f5 (cherry picked from commit 0a4a274b6255cc543df459f16902c1619697068f) --- diff --git a/includes/media/FormatMetadata.php b/includes/media/FormatMetadata.php index f683da2c02..3ea71a927c 100644 --- a/includes/media/FormatMetadata.php +++ b/includes/media/FormatMetadata.php @@ -271,7 +271,7 @@ class FormatMetadata extends ContextSource { // TODO: YCbCrCoefficients #p27 (see annex E) case 'ExifVersion': case 'FlashpixVersion': - $val = "$val" / 100; + $val = (int)$val / 100; break; case 'ColorSpace':