]> git.wh0rd.org - tt-rss.git/blobdiff - classes/db/prefs.php
fix various issues reported by static analysis
[tt-rss.git] / classes / db / prefs.php
index 3e92bb89b59073766e61eadf28dac6af0d3826e8..0d4ebc2d2506aa3fdeca93263f71be69fdf93259 100644 (file)
@@ -23,8 +23,6 @@ class Db_Prefs {
        }
 
        function cache() {
-               $profile = false;
-
                $user_id = $_SESSION["uid"];
                @$profile = $_SESSION["profile"];
 
@@ -129,7 +127,6 @@ class Db_Prefs {
                        @$profile = $_SESSION["profile"];
                } else {
                        $user_id = sprintf("%d", $user_id);
-                       $prefs_cache = false;
                }
 
                if ($profile) {