浏览代码

Small fix for "intval" problem with display_html_default.

phutnick 24 年之前
父节点
当前提交
88c24acf57
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      src/load_prefs.php

+ 3 - 2
src/load_prefs.php

@@ -225,8 +225,9 @@
        
    global $collapse_folders, $show_html_default;
    $collapse_folders = getPref($data_dir, $username, 'collapse_folders');
-   
-   $show_html_default = getPref($data_dir, $username, 'show_html_default');
+  
+   // show_html_default is a int value 
+   $show_html_default = intval(getPref($data_dir, $username, 'show_html_default'));
 
    do_hook("loading_prefs");