[Scummvm-git-logs] scummvm-web master -> 2ceb90ef78a9d1bc54fa48c4fef0d75398e5a53d

Thunderforge noreply at scummvm.org
Mon Nov 22 02:00:22 UTC 2021


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm-web' repo located at https://github.com/scummvm/scummvm-web .

Summary:
2ceb90ef78 WEB: Replacing is_null with !==


Commit: 2ceb90ef78a9d1bc54fa48c4fef0d75398e5a53d
    https://github.com/scummvm/scummvm-web/commit/2ceb90ef78a9d1bc54fa48c4fef0d75398e5a53d
Author: Thunderforge (wjherrmann at gmail.com)
Date: 2021-11-21T20:00:17-06:00

Commit Message:
WEB: Replacing is_null with !==

Codacy recommends this way

Changed paths:
    include/Models/DownloadsModel.php


diff --git a/include/Models/DownloadsModel.php b/include/Models/DownloadsModel.php
index f67c5dd5..736f17ed 100644
--- a/include/Models/DownloadsModel.php
+++ b/include/Models/DownloadsModel.php
@@ -108,7 +108,7 @@ class DownloadsModel extends BasicModel
             ->findByUserAgent($os['name']);
 
         // If we found a user agent for this platform, then generate a download link
-        if (!empty($downloads) && !is_null($downloads[0])) {
+        if (!empty($downloads) && ($downloads[0] !== null )) {
             $download = $downloads[0];
 
             $name = strip_tags($download->getName());




More information about the Scummvm-git-logs mailing list