]> git.wh0rd.org - tt-rss.git/blobdiff - include/sanity_check.php
fix various issues reported by static analysis
[tt-rss.git] / include / sanity_check.php
index 7ca7519c6316e2d1da6a48899ab7dedcd448b6e9..3b3e281ec7932c07f16630df73f8c52d51a41ff3 100755 (executable)
@@ -1,6 +1,5 @@
 <?php
-       /*
-        * WARNING!
+       /* WARNING!
         *
         * If you modify this file, you are ON YOUR OWN!
         *
@@ -21,6 +20,9 @@
                return $url_path;
        }
 
+       /**
+        * @SuppressWarnings(PHPMD.UnusedLocalVariable)
+        */
        function initial_sanity_check() {
 
                $errors = array();
                                array_push($errors, "PHP support for JSON is required, but was not found.");
                        }
 
-                       if (DB_TYPE == "mysql" && !function_exists("mysql_connect") && !function_exists("mysqli_connect")) {
+                       if (DB_TYPE == "mysql" && !function_exists("mysqli_connect")) {
                                array_push($errors, "PHP support for MySQL is required for configured DB_TYPE in config.php.");
                        }