From: Georg Ehrke Date: Fri, 12 Jul 2013 08:03:25 +0000 (+0200) Subject: OC\Preview - use !== and === instead of != and == X-Git-Tag: v6.0.0alpha2~235^2~60 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=33ac4d93d63b98761cf9c09467dcad7bc5d34bf0;p=nextcloud-server.git OC\Preview - use !== and === instead of != and == --- diff --git a/lib/preview.php b/lib/preview.php index 73e01a9e552..5576981225b 100755 --- a/lib/preview.php +++ b/lib/preview.php @@ -305,7 +305,7 @@ class Preview { $y = $size[1]; $aspectratio = $x / $y; - if($aspectratio != $wantedaspectratio) { + if($aspectratio !== $wantedaspectratio) { continue; } @@ -691,7 +691,7 @@ class PreviewManager { } $path = \OC\Files\Filesystem::normalizePath($path, false); - if(substr($path, 0, 1) == '/') { + if(substr($path, 0, 1) === '/') { $path = substr($path, 1); } @@ -768,7 +768,7 @@ class PreviewManager { public static function post_delete($args) { $path = $args['path']; - if(substr($path, 0, 1) == '/') { + if(substr($path, 0, 1) === '/') { $path = substr($path, 1); } $preview = new Preview(\OC_User::getUser(), 'files/', $path, 0, 0, false, true);