]> git.wh0rd.org Git - tt-rss.git/commitdiff
get_user_theme_path: fix typecasting
authorAndrew Dolgov <fox@bah.org.ru>
Wed, 13 Jan 2010 19:55:29 +0000 (22:55 +0300)
committerAndrew Dolgov <fox@bah.org.ru>
Wed, 13 Jan 2010 19:55:29 +0000 (22:55 +0300)
functions.php

index 1276146c36899defb46128c0fb586c9c6654a6a8..2156d8f9f69cc4f92021205a74635e7b25a92524 100644 (file)
        function get_user_theme_path($link) {
 
                if (get_schema_version($link) >= 63) {
-                       $theme_id = get_pref($link, "_THEME_ID");
+                       $theme_id = (int) get_pref($link, "_THEME_ID");
                } else {
                        $theme_id = 1;
                }